aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/xmls.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-11-11 19:22:30 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commit77a3e41fb1fa01fe739c5c450a374498abe7f6d0 (patch)
treebf0eee1251d6d68b7d8176482617dad9be76f4e5 /src/doc_reform/output/xmls.d
parent--workon flag, for some under construction code (diff)
0.3.2 css themes, --dark & --light (default)
Diffstat (limited to 'src/doc_reform/output/xmls.d')
-rw-r--r--src/doc_reform/output/xmls.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc_reform/output/xmls.d b/src/doc_reform/output/xmls.d
index fad0bdf..6a999f6 100644
--- a/src/doc_reform/output/xmls.d
+++ b/src/doc_reform/output/xmls.d
@@ -527,13 +527,13 @@ template outputXHTMLs() {
lev4_subtoc ~= " <div class=\"nav\">\n";
foreach (subtoc; obj.tags.lev4_subtoc) {
if (auto m = subtoc.match(rgx.inline_link_subtoc)) {
- auto indent = m.captures[1].to!string;
+ auto indent = (m.captures[1].to!int - 3).to!string; // css assumptions based on use of em for left margin & indent
auto text = m.captures[2].to!string;
text = font_face(text);
auto link = m.captures[3].to!string;
lev4_subtoc ~= subtoc.replaceFirst(rgx.inline_link_subtoc,
format(q"¶ <p class="minitoc" indent="h%si%s">
- <a href="%s">%s</a>
+ ۰ <a href="%s">%s</a>
</p>
¶",
indent,
@@ -1102,7 +1102,7 @@ template outputXHTMLs() {
if (!(obj.metainfo.identifier.empty)) {
o = format(q"¶ <div class="substance">
<label class="ocn"><a href="#%s" class="lnkocn">%s</a></label>
- <p class="%s" id="%s">%s</p>
+ <pre><p class="%s" id="%s">%s</p></pre>
</div>¶",
obj.metainfo.identifier,
(obj.metainfo.object_number.empty) ? "" : obj.metainfo.identifier,
@@ -1112,7 +1112,7 @@ template outputXHTMLs() {
);
} else {
o = format(q"¶ <div class="substance">
- <p class="%s">%s</p>
+ <pre><p class="%s">%s</p></pre>
</div>¶",
obj.metainfo.is_a,
_txt