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.d13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/sdp/output/html.d b/src/sdp/output/html.d
index ba53eef..f1c25e8 100644
--- a/src/sdp/output/html.d
+++ b/src/sdp/output/html.d
@@ -53,7 +53,7 @@ template outputHTML() {
break;
}
break;
- case "body": assert(part == "body" || "head"); // surprise
+ case "body": assert(part == "body" || "head");
switch (obj.metainfo.is_of_type) {
case "para":
switch (obj.metainfo.is_a) {
@@ -177,7 +177,9 @@ template outputHTML() {
} catch (ErrnoException ex) {
// Handle error
}
- writeln(" ", pth_html.fn_scroll(doc_matters.src.filename));
+ if (!(doc_matters.opt.action.quiet)) {
+ writeln(" ", pth_html.fn_scroll(doc_matters.src.filename));
+ }
}
void seg(D,M)(
const D doc_abstraction,
@@ -233,10 +235,9 @@ template outputHTML() {
segment_filename = obj.tags.segment_anchor_tag;
doc_html[segment_filename] ~= xhtml_format.html_head(doc_matters, "seg");
auto navigation_bar = xhtml_format.nav_pre_next_svg(obj);
- doc_html[segment_filename] ~= navigation_bar.toc_pre_next; // navigation bar
+ doc_html[segment_filename] ~= navigation_bar.toc_pre_next;
previous_seg_filename = segment_filename;
foreach (top_level_heading; top_level_headings) {
- // writeln(top_level_heading);
doc_html[segment_filename] ~= top_level_heading;
}
auto t = xhtml_format.heading_seg(obj, _txt, suffix, "seg");
@@ -433,7 +434,9 @@ template outputHTML() {
} catch (ErrnoException ex) {
// handle error
}
- writeln(" ", pth_html.fn_seg(doc_matters.src.filename, "toc"));
+ if (!(doc_matters.opt.action.quiet)) {
+ writeln(" ", pth_html.fn_seg(doc_matters.src.filename, "toc"));
+ }
}
void css(M)(
auto ref M doc_matters,