diff options
Diffstat (limited to 'src/doc_reform/output/xmls.d')
-rw-r--r-- | src/doc_reform/output/xmls.d | 8 |
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 |