git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #1061 from heurist/epub_coverLinear

Epub Writer: Refactor unnecessary list ++

commit4566309dd5ab5c8e4d67a59011cdf27bd63ed0b0 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 19 Nov 2013, 09:24 (13 years ago) parenta3eba6e5b27480
1 file changed+5−2
src/Text/Pandoc/Writers/EPUB.hs+5−2
src/Text/Pandoc/Writers/EPUB.hs+5−2
@@ -260,8 +260,11 @@ writeEPUB opts doc@(Pandoc meta _) = do
260260 else "no")] $ ()) :
261261 map chapterRefNode chapterEntries)
262262 , unode "guide" $
263− unode "reference" !
264− [("type","toc"),("title",plainTitle),("href","nav.xhtml")] $ ()
263+ [ unode "reference" !
264+ [("type","toc"),("title",plainTitle),("href","nav.xhtml")] $ ()
265+ , unode "reference" !
266+ [("type","cover"),("title","Cover"),("href","cover.xhtml")] $ ()
267+ ]
265268 ]
266269 let contentsEntry = mkEntry "content.opf" contentsData
267270