mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 16:35:42 +00:00
EPUB writer: Don't create entry for nav.xhtml in EPUB2.
This commit is contained in:
@@ -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) ++
|
||||
|
||||
Reference in New Issue
Block a user