diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-03-07 09:11:09 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 5a4df097b2976c24c449c56cf035995edfb1261e (patch) | |
tree | 9112c6f32f1b9a8d7cdc7849754d6b8f602de0c5 /src/sdp/output_epub.d | |
parent | org files minor touches (diff) |
0.13.6 dlang function calls, syntax (ufcs related), logic should be retained
Diffstat (limited to 'src/sdp/output_epub.d')
-rw-r--r-- | src/sdp/output_epub.d | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/sdp/output_epub.d b/src/sdp/output_epub.d index c66bf8f..3724854 100644 --- a/src/sdp/output_epub.d +++ b/src/sdp/output_epub.d @@ -165,7 +165,6 @@ template outputEPub() { mixin SiSUoutputRgxInit; auto xhtml_format = outputXHTMLs(); auto rgx = Rgx(); - // string[] toc; string[][string] doc_epub; string[][string] doc_epub_endnotes; string[] doc; @@ -395,13 +394,13 @@ template outputEPub() { auto xhtml_format = outputXHTMLs(); try { if (!exists(pth_epub.doc_meta_inf(doc_matters.source_filename))) { - mkdirRecurse(pth_epub.doc_meta_inf(doc_matters.source_filename)); + pth_epub.doc_meta_inf(doc_matters.source_filename).mkdirRecurse; } if (!exists(pth_epub.doc_oebps_css(doc_matters.source_filename))) { - mkdirRecurse(pth_epub.doc_oebps_css(doc_matters.source_filename)); + pth_epub.doc_oebps_css(doc_matters.source_filename).mkdirRecurse; } if (!exists(pth_epub.doc_oebps_image(doc_matters.source_filename))) { - mkdirRecurse(pth_epub.doc_oebps_image(doc_matters.source_filename)); + pth_epub.doc_oebps_image(doc_matters.source_filename).mkdirRecurse; } /+ OEBPS/[segments].xhtml +/ foreach (seg_filename; doc_matters.segnames) { @@ -429,8 +428,8 @@ template outputEPub() { f.writeln(oebps_content_opf); foreach (image; doc_matters.image_list) { if (exists("_sisu/image/"~ image)) { - copy(("_sisu/image/"~ image), - ((pth_epub.doc_oebps_image(doc_matters.source_filename)) ~ "/" ~ image)); + ("_sisu/image/"~ image) + .copy((pth_epub.doc_oebps_image(doc_matters.source_filename)) ~ "/" ~ image); } } } |