aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/ao_doc_abstraction.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-05-06 11:33:10 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit7a73aa10276b0c1151500d26b194336b56af7aba (patch)
treee267901f73375393cc429c5c17ce661216de111a /org/ao_doc_abstraction.org
parentxmls work particularly with epub output (diff)
Diffstat (limited to 'org/ao_doc_abstraction.org')
-rw-r--r--org/ao_doc_abstraction.org27
1 files changed, 12 insertions, 15 deletions
diff --git a/org/ao_doc_abstraction.org b/org/ao_doc_abstraction.org
index 878f1a0..f6d65e1 100644
--- a/org/ao_doc_abstraction.org
+++ b/org/ao_doc_abstraction.org
@@ -961,7 +961,7 @@ continue;
#+BEGIN_SRC d
assert(
!line.empty,
- "line tested, line not empty surely"
+ "line tested, line not empty surely:\n \"" ~ line ~ "\""
);
assert(
(type["blocks"] == TriState.off)
@@ -976,7 +976,9 @@ if (type["blocks"] == TriState.closing) {
assert(
line.matchFirst(rgx.book_index)
|| line.matchFirst(rgx.book_index_open)
- || type["book_index"] == State.on
+ || type["book_index"] == State.on,
+ "\nblocks closed, unless followed by book index, non-matching line:\n \""
+ ~ line ~ "\""
);
}
#+END_SRC
@@ -1022,7 +1024,7 @@ if (line.matchFirst(rgx.book_index)
++cntr;
#+END_SRC
-******** flag not set & line not exist: heading or para :heading:paragraph:
+******** flag !set & line !exist: heading or para :heading:paragraph:
#+name: abs_in_loop_body_not_block_obj
#+BEGIN_SRC d
@@ -1080,7 +1082,7 @@ if (line.matchFirst(rgx.book_index)
} else if (line_occur["para"] > State.off) {
/+ paragraph +/
debug(para) {
- writeln(line);
+ writeln(an_object_key, "-> ", line);
}
an_object[an_object_key] ~= " " ~ line;
++line_occur["para"];
@@ -1114,7 +1116,8 @@ _block_flag_line_empty_(
#+BEGIN_SRC d
assert(
line.empty,
- "line should be empty"
+ "\nline should be empty:\n \""
+ ~ line ~ "\""
);
assert(
(type["blocks"] == State.off),
@@ -3362,7 +3365,8 @@ void _block_flag_line_empty_(B)(
) {
assert(
line.empty,
- "line should be empty"
+ "\nline should be empty:\n \""
+ ~ line ~ "\""
);
assert(
(type["blocks"] == TriState.closing),
@@ -3523,7 +3527,7 @@ void _block_flag_line_empty_(B)(
obj_cite_number,
segment_anchor_tag_that_object_belongs_to
);
- an_object["is"] = "verse";
+ an_object["is"] = "verse";
auto comp_obj_location =
node_construct.node_location_emitter(
content_non_header,
@@ -5098,7 +5102,7 @@ struct ObjInlineMarkup {
private:
#+END_SRC
-******* make heading number and segment anchor tags if instructed :markup:inline:segment:anchor:tags:
+******* make heading number & segment anchor tags if instructed :markup:inline:segment:anchor:tags:
#+name: ao_emitters_obj_inline_markup_heading_numbering_segment_anchor_tags
#+BEGIN_SRC d
@@ -5239,17 +5243,10 @@ private:
}
#+END_SRC
-******** unittests
-
-#+name: ao_emitters_obj_inline_markup_heading_numbering_segment_anchor_tags
-#+BEGIN_SRC d
-#+END_SRC
-
******* make segment anchor tags if not provided :markup:inline:segment:anchor:tags:
#+name: ao_emitters_obj_inline_markup_heading_numbering_segment_anchor_tags
#+BEGIN_SRC d
-
static string _make_segment_anchor_tags_if_none_provided(M,Lv)(M munge_, Lv lev_) {
debug(asserts) {
static assert(is(typeof(munge_) == string));