aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 98f043cd8..ef4c7be23 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -267,8 +267,9 @@ writeEPUB opts doc@(Pandoc meta _) = do
, unode "guide" $
[ unode "reference" !
[("type","toc"),("title",plainTitle),("href","nav.xhtml")] $ ()
- , unode "reference" !
- [("type","cover"),("title","Cover"),("href","cover.xhtml")] $ ()
+ ] ++
+ [ unode "reference" !
+ [("type","cover"),("title","Cover"),("href","cover.xhtml")] $ () | mbCoverImage /= Nothing
]
]
let contentsEntry = mkEntry "content.opf" contentsData