diff options
Diffstat (limited to 'src/doc_reform/io_out/xmls.d')
-rw-r--r-- | src/doc_reform/io_out/xmls.d | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d index b9d5a1b..534ab94 100644 --- a/src/doc_reform/io_out/xmls.d +++ b/src/doc_reform/io_out/xmls.d @@ -100,7 +100,8 @@ template outputXHTMLs() { .replaceAll(rgx.xhtml_less_than, "<") // "<" .replaceAll(rgx.xhtml_greater_than, ">") // ">" .replaceAll(rgx.br_line, "<br />") - .replaceAll(rgx.br_newline_inline, "<br />") + .replaceAll(rgx.br_line_inline, "<br />") + .replaceAll(rgx.br_line_spaced, "<br />\n<br />") .replaceAll(rgx.nbsp_char, " "); return _txt; } @@ -108,6 +109,8 @@ template outputXHTMLs() { _txt = _txt .replaceAll(regex(r"(?:-00)+"), "") .replaceAll(rgx.br_line, "<br />") + .replaceAll(rgx.br_line_inline, "<br />") + .replaceAll(rgx.br_line_spaced, "<br />\n<br />") .replaceAll(rgx.nbsp_char, " "); return _txt; } @@ -236,7 +239,7 @@ template outputXHTMLs() { .replaceAll( rgx.br_line, "") .replaceAll( - rgx.br_newline_inline, ""); + rgx.br_line_inline, ""); } else { _locations = "<p class=\"tiny_left\"><a href=\"https://www.doc-reform.org\">spine</a></p>\n<p class=\"tiny_left\"><a href=\"https://git.sisudoc.org/software/spine/\">sources / git</a></p>\n<p class=\"tiny_left\"><a href=\"https://www.sisudoc.org\">www.sisudoc.org</a></p>"; } @@ -1320,7 +1323,7 @@ template outputXHTMLs() { string codelines(string _txt) { string _codelines; if (obj.code_block.linenumbers) { - string[] _block_lines = (_txt).split(rgx.br_newlines_linebreaks); + string[] _block_lines = (_txt).split(rgx.br_linebreaks_newlines); _codelines = " <pre class=\"codeline\">\n"; foreach (k, _line; _block_lines) { if (k == 1) { |