aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_html.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output_html.d')
-rw-r--r--src/sdp/output_html.d40
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;
}
}