EPUB writer: Don't create entry for nav.xhtml in EPUB2.

This commit is contained in:
John MacFarlane
2012-11-02 20:25:55 -07:00
parent 76d3c0d028
commit 583ce1073c
+3 -2
View File
@@ -189,9 +189,10 @@ writeEPUB version opts doc@(Pandoc meta _) = do
,("media-type","application/x-dtbncx+xml")] $ ()
, unode "item" ! [("id","style"), ("href","stylesheet.css")
,("media-type","text/css")] $ ()
, unode "item" ! [("id","nav"), ("href","nav.xhtml")
,("properties","nav")
] ++
[ unode "item" ! [("id","nav"), ("href","nav.xhtml")
,("media-type","application/xhtml+xml")] $ ()
| version == EPUB3
] ++
map chapterNode (cpgEntry ++ (tpEntry : chapterEntries)) ++
map pictureNode (cpicEntry ++ picEntries) ++