From 648492549fc290c416d870040c9097cc53335d44 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 30 Jan 2017 14:19:27 -0500 Subject: screen output --- src/sdp/output_html.d | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) (limited to 'src/sdp/output_html.d') 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; } } -- cgit v1.2.3