aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_xmls.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-03-24 12:38:41 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-04-03 18:13:50 -0400
commite2424c06d3bfa552f35fb288429c3ef4e5357cc7 (patch)
treec1d8aefd2ce9acc7760a4eb9dbef1eea3afa3c66 /org/out_xmls.org
parentlatex, pagebreaks, make headers, consider (diff)
latex output (try tidy); linebreaks more generally
Diffstat (limited to 'org/out_xmls.org')
-rw-r--r--org/out_xmls.org11
1 files changed, 7 insertions, 4 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org
index c082a76..54a2174 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -165,7 +165,8 @@ import
.replaceAll(rgx.xhtml_less_than, "&lt;") // "&#60;"
.replaceAll(rgx.xhtml_greater_than, "&gt;") // "&#62;"
.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;
}
@@ -179,6 +180,8 @@ import
_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;
}
@@ -338,7 +341,7 @@ import
.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>";
}
@@ -1558,7 +1561,7 @@ import
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) {
@@ -2599,7 +2602,7 @@ xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
</li>┃",
obj.text
.replaceAll(rgx.inline_notes_al_gen, "")
- .replaceAll(rgx.br_newline_inline, "<br />")
+ .replaceAll(rgx.br_line_inline, "<br />")
.strip,
);
toc ~= "\n";