EPUB writer: Removed playOrder from navpoint elements in ncx file.

These aren't required, and they make manual modification of epubs
difficult.  Closes #1760.
This commit is contained in:
John MacFarlane 2014-12-15 10:22:19 -08:00
parent 47c360e079
commit c37db57c9a

View file

@ -570,8 +570,7 @@ writeEPUB opts doc@(Pandoc meta _) = do
let navMapFormatter :: Int -> String -> String -> [Element] -> Element
navMapFormatter n tit src subs = unode "navPoint" !
[("id", "navPoint-" ++ show n)
,("playOrder", show n)] $
[("id", "navPoint-" ++ show n)] $
[ unode "navLabel" $ unode "text" tit
, unode "content" ! [("src", src)] $ ()
] ++ subs