From 5f495eaace3ce4cf15a89b6b3cfb54df6d1658d8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 13 Jul 2019 15:20:14 -0700 Subject: EPUB writer: Use svg tag wrapper for cover image. In addition, the code generating the image has been moved to the template, to make it more customizable. Those who use custom EPUB templates will need to adjust their templates, adding the code to generate the cover image. (Previously this was just inserted into 'body'.) Closes #5643. --- data/templates/default.epub2 | 8 ++++++++ data/templates/default.epub3 | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'data') diff --git a/data/templates/default.epub2 b/data/templates/default.epub2 index afcf96a3e..f440134df 100644 --- a/data/templates/default.epub2 +++ b/data/templates/default.epub2 @@ -46,6 +46,13 @@ $if(rights)$
$rights$
$endif$ $else$ +$if(coverpage)$ +
+ + + +
+$else$ $for(include-before)$ $include-before$ $endfor$ @@ -54,6 +61,7 @@ $for(include-after)$ $include-after$ $endfor$ $endif$ +$endif$ diff --git a/data/templates/default.epub3 b/data/templates/default.epub3 index f0feb147a..4f5bd6641 100644 --- a/data/templates/default.epub3 +++ b/data/templates/default.epub3 @@ -47,6 +47,13 @@ $if(rights)$ $endif$ $else$ +$if(coverpage)$ +
+ + + +
+$else$ $for(include-before)$ $include-before$ $endfor$ @@ -55,6 +62,7 @@ $for(include-after)$ $include-after$ $endfor$ $endif$ +$endif$ -- cgit v1.2.3