aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/epub3.d
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 /src/doc_reform/io_out/epub3.d
parentlatex, pagebreaks, make headers, consider (diff)
latex output (try tidy); linebreaks more generally
Diffstat (limited to 'src/doc_reform/io_out/epub3.d')
-rw-r--r--src/doc_reform/io_out/epub3.d5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc_reform/io_out/epub3.d b/src/doc_reform/io_out/epub3.d
index 0444aed..44607f7 100644
--- a/src/doc_reform/io_out/epub3.d
+++ b/src/doc_reform/io_out/epub3.d
@@ -71,7 +71,8 @@ template outputEPub3() {
.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;
}
@@ -236,7 +237,7 @@ template outputEPub3() {
</li>┃",
obj.text
.replaceAll(rgx.inline_notes_al_gen, "")
- .replaceAll(rgx.br_newline_inline, "<br />")
+ .replaceAll(rgx.br_line_inline, "<br />")
.strip,
);
toc ~= "\n";