aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/epub3.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-03-20 13:03:02 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-05-17 16:59:38 -0400
commitda32ec40fc237b03f22aac329017d06735289a3a (patch)
treedf8f2ddcf1dda26914939c73f11b87db57ae6c64 /src/doc_reform/output/epub3.d
parent0.5.0 per object inline munging (rather than by line) (diff)
housekeepingdoc-reform_v0.5.0
Diffstat (limited to 'src/doc_reform/output/epub3.d')
-rw-r--r--src/doc_reform/output/epub3.d8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc_reform/output/epub3.d b/src/doc_reform/output/epub3.d
index 97d8427..e02637c 100644
--- a/src/doc_reform/output/epub3.d
+++ b/src/doc_reform/output/epub3.d
@@ -288,7 +288,11 @@ template outputEPub3() {
}
}
}
- toc ~= format(q"┋ </navMap>
+ toc ~= format(q"┋
+ </navPoint>
+ </navPoint>
+ </navPoint>
+ </navMap>
</ncx>┋");
return toc;
}
@@ -630,7 +634,7 @@ template outputEPub3() {
? zip_data.write(contents.dup)
: zip_data.write(contents.dup
.replaceAll(rgx.spaces_line_start, "")
- .replaceAll(rgx.newline, "")
+ .replaceAll(rgx.newline, " ")
.strip
);
zip_arc_member_file.expandedData = zip_data.toBytes();