aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_epub.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-01-30 14:19:27 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit648492549fc290c416d870040c9097cc53335d44 (patch)
tree2f6b7f4b2cf6ae31fea4ca9f94b4b80f0445b42a /src/sdp/output_epub.d
parentorg file reorganise (diff)
screen output
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;
}
}