aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_epub.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output_epub.d')
-rw-r--r--src/sdp/output_epub.d12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/sdp/output_epub.d b/src/sdp/output_epub.d
index 07b2cb9..076265c 100644
--- a/src/sdp/output_epub.d
+++ b/src/sdp/output_epub.d
@@ -215,7 +215,9 @@ template outputEPub() {
doc_epub[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") {
@@ -269,7 +271,9 @@ template outputEPub() {
doc_epub[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;
@@ -302,7 +306,9 @@ template outputEPub() {
}
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
}