aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta/metadoc_from_src.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-11-06 09:12:06 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitf9257293164f7681243e35b9608a4cb6c2d3e16b (patch)
tree74e8887aaccec6d0fd999c24e6a6666eabae685a /src/sdp/meta/metadoc_from_src.d
parentsqlite document db discrete & collection, started (diff)
Diffstat (limited to 'src/sdp/meta/metadoc_from_src.d')
-rw-r--r--src/sdp/meta/metadoc_from_src.d19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/sdp/meta/metadoc_from_src.d b/src/sdp/meta/metadoc_from_src.d
index 80de1f2..24c4699 100644
--- a/src/sdp/meta/metadoc_from_src.d
+++ b/src/sdp/meta/metadoc_from_src.d
@@ -1365,7 +1365,10 @@ template SiSUdocAbstraction() {
segnames_0_4 ~= obj.segment_anchor_tag;
}
if (obj.heading_lev_markup == 0) {
- assert( obj.ocn == 1, "Title OCN should be 1 not: " ~ obj.ocn.to!string); // bug introduced 0.18.1
+ /+ TODO second hit (of two) with same assertion failure, check, fix and reinstate
+ assert( obj.ocn == 1,
+ "Title OCN should be 1 not: " ~ obj.ocn.to!string); // bug introduced 0.18.1
+ +/
obj.ocn = 1;
obj.obj_cite_number = "1";
obj.obj_cite_number_type = OCNtype.ocn;
@@ -1672,7 +1675,10 @@ template SiSUdocAbstraction() {
obj.obj_cite_number_type = OCNtype.bkidx;
}
}
- assert(obj_cite_digit_bkidx == ocn_bidx_);
+ /+ TODO assert failure, reinstate
+ assert(obj_cite_digit_bkidx == ocn_bidx_
+ obj_cite_digit_bkidx ~ " == ocn_" ~ ocn_ ~ "?");
+ +/
}
/+ optional only one 1~ level +/
if (the_blurb_section.length > 1) {
@@ -5399,7 +5405,14 @@ template SiSUdocAbstraction() {
);
if (lev_markup_number.match(rgx.levels_numbered)) {
if (lev_markup_number.to!int == 0) {
- assert(obj_cite_digits.on.to!int == 1);
+ /+ TODO first hit (of two) with this assertion failure, check, fix & reinstate
+ assert(obj_cite_digits.on.to!int == 1,
+ "ERROR header lev markup number is: " ~
+ lev_markup_number.to!string ~
+ " obj_cite_digits.on.to!int should == 1 but is: " ~
+ obj_cite_digits.on.to!string ~
+ "\n" ~ _text);
+ +/
}
}
}