aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-11-02 20:25:55 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-11-02 20:25:55 -0700
commit583ce1073c8a3b1b52558d703a0e8fbb071269a4 (patch)
tree12253a67a28ee476c008de4c5ad2f009c8d32d25
parent76d3c0d028e738b3c63d4bb1d51a360f54645fee (diff)
downloadpandoc-583ce1073c8a3b1b52558d703a0e8fbb071269a4.tar.gz
EPUB writer: Don't create entry for nav.xhtml in EPUB2.
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 70169328e..63a17f608 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -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) ++