git.iko.soy/typeable/pandoc
on master help sign in
Fixed regression in ODT writer.

This was due to a change in the Show instance for Text.Pandoc.Pretty.Doc, which led 1.11 to produce corrupt ODTs. Closes #780.

commita1c0210dcd7902a942b91137ca420431a9828134 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 15 Mar 2013, 15:20 (14 years ago) parentdb3d411
1 file changed+2−2
src/Text/Pandoc/Writers/ODT.hs+2−2
src/Text/Pandoc/Writers/ODT.hs+2−2
@@ -78,7 +78,7 @@ writeODT opts doc@(Pandoc (Meta title _ _) _) = do
7878 ]
7979 let files = [ ent | ent <- filesInArchive archive, not ("META-INF" `isPrefixOf` ent) ]
8080 let manifestEntry = toEntry "META-INF/manifest.xml" epochtime
81− $ fromStringLazy $ show
81+ $ fromStringLazy $ render Nothing
8282 $ text "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
8383 $$
8484 ( inTags True "manifest:manifest"
@@ -92,7 +92,7 @@ writeODT opts doc@(Pandoc (Meta title _ _) _) = do
9292 )
9393 let archive' = addEntryToArchive manifestEntry archive
9494 let metaEntry = toEntry "meta.xml" epochtime
95− $ fromStringLazy $ show
95+ $ fromStringLazy $ render Nothing
9696 $ text "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
9797 $$
9898 ( inTags True "office:document-meta"