diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-01-30 14:19:27 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 648492549fc290c416d870040c9097cc53335d44 (patch) | |
tree | 2f6b7f4b2cf6ae31fea4ca9f94b4b80f0445b42a /src/sdp/output_html.d | |
parent | org file reorganise (diff) |
screen output
Diffstat (limited to 'src/sdp/output_html.d')
-rw-r--r-- | src/sdp/output_html.d | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/src/sdp/output_html.d b/src/sdp/output_html.d index fca6f1f..7b99f4e 100644 --- a/src/sdp/output_html.d +++ b/src/sdp/output_html.d @@ -66,12 +66,16 @@ template outputHTML() { doc_html ~= xhtml_format.toc(obj); break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } } else if (obj.use == "body") { @@ -85,7 +89,9 @@ template outputHTML() { doc_html ~= xhtml_format.para(obj); break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } break; @@ -112,12 +118,16 @@ template outputHTML() { doc_html ~= xhtml_format.code(obj); break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_of); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_of); + } break; } } else if (obj.use == "backmatter") { @@ -143,12 +153,16 @@ template outputHTML() { doc_html ~= xhtml_format.para(obj); break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } } @@ -237,7 +251,9 @@ template outputHTML() { doc_html[segment_filename] ~= xhtml_format.heading(obj); break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } } else if (obj.use == "frontmatter") { @@ -291,7 +307,9 @@ template outputHTML() { doc_html[segment_filename] ~= xhtml_format.code(obj); break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } break; @@ -324,7 +342,9 @@ template outputHTML() { } break; default: - writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + if ((doc_matters.opt_action_bool["debug"])) { + writeln(__FILE__, ":", __LINE__, ": ", obj.is_a); + } break; } } |