git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Don't create entry for nav.xhtml in EPUB2.
commit583ce1073c8a3b1b52558d703a0e8fbb071269a4 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 2 Nov 2012, 20:25 (14 years ago) parent76d3c0d
1 file changed+3−2
src/Text/Pandoc/Writers/EPUB.hs+3−2
src/Text/Pandoc/Writers/EPUB.hs+3−2
@@ -189,9 +189,10 @@ writeEPUB version opts doc@(Pandoc meta _) = do
189189 ,("media-type","application/x-dtbncx+xml")] $ ()
190190 , unode "item" ! [("id","style"), ("href","stylesheet.css")
191191 ,("media-type","text/css")] $ ()
192− , unode "item" ! [("id","nav"), ("href","nav.xhtml")
193− ,("properties","nav")
192+ ] ++
193+ [ unode "item" ! [("id","nav"), ("href","nav.xhtml")
194194 ,("media-type","application/xhtml+xml")] $ ()
195+ | version == EPUB3
195196 ] ++
196197 map chapterNode (cpgEntry ++ (tpEntry : chapterEntries)) ++
197198 map pictureNode (cpicEntry ++ picEntries) ++