aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_xmls.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-02-22 14:23:35 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-02-23 11:00:55 -0500
commit614e44ad155e693f82a8228897bba2f4869167dd (patch)
tree4ba674ba60fb3b00460c37bf7b3f30d3cc9da49d /org/out_xmls.org
parentpod org file, minor (diff)
rethink verbose & debug flags, introduce show
Diffstat (limited to 'org/out_xmls.org')
-rw-r--r--org/out_xmls.org84
1 files changed, 28 insertions, 56 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org
index fdb64d9..b017bf7 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -1769,8 +1769,7 @@ case "frontmatter": assert(part == "head" || "toc");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -1779,8 +1778,7 @@ case "frontmatter": assert(part == "head" || "toc");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -1805,8 +1803,7 @@ case "body": assert(part == "body" || "head");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -1837,8 +1834,7 @@ case "body": assert(part == "body" || "head");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -1847,8 +1843,7 @@ case "body": assert(part == "body" || "head");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -1889,8 +1884,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -1899,8 +1893,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -1911,8 +1904,7 @@ case "comment":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_part);
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
writeln(__FILE__, ":", __LINE__, ": ", obj.text);
@@ -2053,8 +2045,7 @@ if (obj.metainfo.is_a == "heading") {
break;
case 8: .. case 9:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a, ": ", obj.metainfo.heading_lev_markup);
writeln(__FILE__, ":", __LINE__, ": ", obj.text);
}
@@ -2062,8 +2053,7 @@ if (obj.metainfo.is_a == "heading") {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a, ": ", obj.metainfo.heading_lev_markup);
}
}
@@ -2095,8 +2085,7 @@ case "frontmatter": assert(part == "head" || "toc");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2105,8 +2094,7 @@ case "frontmatter": assert(part == "head" || "toc");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2130,8 +2118,7 @@ case "body": assert(part == "body");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2170,8 +2157,7 @@ case "body": assert(part == "body");
doc_html[segment_filename] ~= t[0].to!string;
doc_html_endnotes[segment_filename] ~= t[1];
} else { /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2180,8 +2166,7 @@ case "body": assert(part == "body");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -2230,8 +2215,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2240,8 +2224,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -2252,8 +2235,7 @@ case "comment":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_html
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_html) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_part);
}
}
@@ -2765,8 +2747,7 @@ if (obj.metainfo.is_a == "heading") {
break;
case 8: .. case 9:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a, ": ", obj.metainfo.heading_lev_markup);
writeln(__FILE__, ":", __LINE__, ": ", obj.text);
}
@@ -2774,8 +2755,7 @@ if (obj.metainfo.is_a == "heading") {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a, ": ", obj.metainfo.heading_lev_markup);
}
}
@@ -2808,8 +2788,7 @@ case "frontmatter": assert(part == "head" || "toc");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2818,8 +2797,7 @@ case "frontmatter": assert(part == "head" || "toc");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -2843,8 +2821,7 @@ case "body": assert(part == "body");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2884,8 +2861,7 @@ case "body": assert(part == "body");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2894,8 +2870,7 @@ case "body": assert(part == "body");
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -2944,8 +2919,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
}
@@ -2954,8 +2928,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
}
@@ -2972,8 +2945,7 @@ case "backmatter":
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do_epub
- && doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.debug_do_epub) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_part);
}
}