git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Don't create entry for nav.xhtml in EPUB2.
583ce10John MacFarlane
src/Text/Pandoc/Writers/EPUB.hs+3−2
@@ -189,9 +189,10 @@ writeEPUB version opts doc@(Pandoc meta _) = do
189 ,("media-type","application/x-dtbncx+xml")] $ ()
189 ,("media-type","application/x-dtbncx+xml")] $ ()
190 , unode "item" ! [("id","style"), ("href","stylesheet.css")
190 , unode "item" ! [("id","style"), ("href","stylesheet.css")
191 ,("media-type","text/css")] $ ()
191 ,("media-type","text/css")] $ ()
192+ ] ++
192− , unode "item" ! [("id","nav"), ("href","nav.xhtml")
193+ [ unode "item" ! [("id","nav"), ("href","nav.xhtml")
193− ,("properties","nav")
194 ,("media-type","application/xhtml+xml")] $ ()
194 ,("media-type","application/xhtml+xml")] $ ()
195+ | version == EPUB3
195 ] ++
196 ] ++
196 map chapterNode (cpgEntry ++ (tpEntry : chapterEntries)) ++
197 map chapterNode (cpgEntry ++ (tpEntry : chapterEntries)) ++
197 map pictureNode (cpicEntry ++ picEntries) ++
198 map pictureNode (cpicEntry ++ picEntries) ++