aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_abstract_doc_source.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-09-07 11:20:14 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:13 -0400
commitea53522aa7c1a513724680b2b99b7c54a56db728 (patch)
tree8343c599b86d27311e98875e877afad0d51ff35a /src/sdp/ao_abstract_doc_source.d
parentscreen output, just use writeln etc. keep simple (diff)
document structure, headings, debug info
Diffstat (limited to 'src/sdp/ao_abstract_doc_source.d')
-rw-r--r--src/sdp/ao_abstract_doc_source.d33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/sdp/ao_abstract_doc_source.d b/src/sdp/ao_abstract_doc_source.d
index 616d124..0428291 100644
--- a/src/sdp/ao_abstract_doc_source.d
+++ b/src/sdp/ao_abstract_doc_source.d
@@ -541,41 +541,41 @@ template SiSUdocAbstraction() {
debug(heading) { // heading
string spc;
foreach (o; document_the) {
- if (o["is"] == "heading") {
- switch (o["lev_markup_number"]) {
- case "0":
+ if (o.is_a == "heading") {
+ switch (o.heading_attrib.lev_markup_number) {
+ case 0:
// case to!string(DocStructMarkupHeading.h_sect_A):
spc="";
break;
- case "1":
+ case 1:
// case to!string(DocStructMarkupHeading.h_sect_B):
spc=" ";
break;
- case "2":
+ case 2:
// case to!string(DocStructMarkupHeading.h_sect_C):
spc=" ";
break;
- case "3":
+ case 3:
// case to!string(DocStructMarkupHeading.h_sect_D):
spc=" ";
break;
- case "4":
+ case 4:
// case to!string(DocStructMarkupHeading.h_text_1):
spc=" ";
break;
- case "5":
+ case 5:
// case to!string(DocStructMarkupHeading.h_text_2):
spc=" ";
break;
- case "6":
+ case 6:
// case to!string(DocStructMarkupHeading.h_text_3):
spc=" ";
break;
- case "7":
+ case 7:
// case to!string(DocStructMarkupHeading.h_text_4):
spc=" ";
break;
- case "8":
+ case 8:
// case to!string(DocStructMarkupHeading.h_text_5):
spc=" ";
break;
@@ -588,10 +588,11 @@ template SiSUdocAbstraction() {
// o
// );
writefln(
- "%s* $s\n %s",
+ "%s* %s\n (markup level: %s; collapsed level: %s)",
spc,
- strip(o["obj"]),
- o["attrib"]
+ strip(o.object),
+ o.heading_attrib.lev_markup_number,
+ o.heading_attrib.lev_collapsed_number
);
// writeln(spc, "* ", to!string(o["lev_collapsed_number"]), " ", strip(o["obj"]));
// tell_l("yellow", spc, strip(o["obj"]));
@@ -1749,8 +1750,8 @@ template SiSUdocAbstraction() {
assertions_doc_structure(an_object, lv); // includes most of the logic for collapsed levels
switch (an_object["lev"]) {
case "A":
- an_object["obj"]=replaceFirst(an_object["obj"], rgx.variable_doc_title, to!string(dochead_meta_aa["title"]["main"]));
- an_object["obj"]=replaceFirst(an_object["obj"], rgx.variable_doc_author, to!string(dochead_meta_aa["creator"]["author"]));
+ an_object["obj"]=replaceFirst(an_object["obj"], rgx.variable_doc_title, dochead_meta_aa["title"]["main"]);
+ an_object["obj"]=replaceFirst(an_object["obj"], rgx.variable_doc_author, dochead_meta_aa["creator"]["author"]);
collapsed_lev["h0"] = 1;
an_object["lev_collapsed_number"] =
to!string(collapsed_lev["h0"]);