EPUB writer: fix paths for cover image.

Closes #4069.
This commit is contained in:
John MacFarlane 2017-11-14 20:57:41 -08:00
parent c9407f85a0
commit d29ef39f6f

View file

@ -667,7 +667,7 @@ pandocToEPUB version opts doc@(Pandoc meta _) = do
[ unode "reference" !
[("type","cover")
,("title","Cover")
,("href","cover.xhtml")] $ ()
,("href","text/cover.xhtml")] $ ()
| isJust (epubCoverImage metadata)
]
]
@ -770,7 +770,7 @@ pandocToEPUB version opts doc@(Pandoc meta _) = do
,("hidden","hidden")] $
[ unode "ol" $
[ unode "li"
[ unode "a" ! [("href", "cover.xhtml")
[ unode "a" ! [("href", "text/cover.xhtml")
,("epub:type", "cover")] $
"Cover"] |
epubCoverImage metadata /= Nothing