aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-11-07 11:47:37 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commitaba135a5ce2c8a58551a478d064262bda19c9770 (patch)
treee90d87693f4af27bbf8fa95287d3792ddf9724a7 /src/doc_reform/output
parent0.3.0 internal links, anchor tags & segment associations (diff)
0.3.1 internal links, anchor tags & segment associations, toc
Diffstat (limited to 'src/doc_reform/output')
-rw-r--r--src/doc_reform/output/sqlite.d14
-rw-r--r--src/doc_reform/output/xmls.d16
2 files changed, 18 insertions, 12 deletions
diff --git a/src/doc_reform/output/sqlite.d b/src/doc_reform/output/sqlite.d
index 2456509..d09b9b8 100644
--- a/src/doc_reform/output/sqlite.d
+++ b/src/doc_reform/output/sqlite.d
@@ -316,11 +316,15 @@ template SQLiteFormatAndLoadObject() {
);
}
} else {
- writeln(
- "WARNING on internal document links, anchor to link not found in document, "
- ~ "anchor: " ~ m.captures[3]
- ~ " document: " ~ doc_matters.src.filename
- );
+ if (!(doc_matters.opt.action.quiet)) {
+ writeln(
+ "WARNING on internal document links, anchor to link <<"
+ ~ m.captures[3]
+ ~ ">> not found in document, "
+ ~ "anchor: " ~ m.captures[3]
+ ~ " document: " ~ doc_matters.src.filename
+ );
+ }
}
}
} else {
diff --git a/src/doc_reform/output/xmls.d b/src/doc_reform/output/xmls.d
index 6154010..b69d1a7 100644
--- a/src/doc_reform/output/xmls.d
+++ b/src/doc_reform/output/xmls.d
@@ -368,13 +368,15 @@ template outputXHTMLs() {
);
}
} else {
- writeln(
- "WARNING on internal document links, anchor to link <<"
- ~ m.captures[3]
- ~ ">> not found in document, "
- ~ "anchor: " ~ m.captures[3]
- ~ " document: " ~ doc_matters.src.filename
- );
+ if (!(doc_matters.opt.action.quiet)) {
+ writeln(
+ "WARNING on internal document links, anchor to link <<"
+ ~ m.captures[3]
+ ~ ">> not found in document, "
+ ~ "anchor: " ~ m.captures[3]
+ ~ " document: " ~ doc_matters.src.filename
+ );
+ }
}
}
}