git.iko.soy/typeable/pandoc
on master help sign in
EPUB writer: Removed playOrder from navpoint elements in ncx file.

These aren't required, and they make manual modification of epubs difficult. Closes #1760.

commitc37db57c9a4f2d812ae75371757ccaa2bbe8ecef authorJohn MacFarlane <jgm@berkeley.edu> dateMon 15 Dec 2014, 10:22 (12 years ago) parent47c360e
1 file changed+1−2
src/Text/Pandoc/Writers/EPUB.hs+1−2
src/Text/Pandoc/Writers/EPUB.hs+1−2
@@ -570,8 +570,7 @@ writeEPUB opts doc@(Pandoc meta _) = do
570570
571571 let navMapFormatter :: Int -> String -> String -> [Element] -> Element
572572 navMapFormatter n tit src subs = unode "navPoint" !
573− [("id", "navPoint-" ++ show n)
574− ,("playOrder", show n)] $
573+ [("id", "navPoint-" ++ show n)] $
575574 [ unode "navLabel" $ unode "text" tit
576575 , unode "content" ! [("src", src)] $ ()
577576 ] ++ subs