git.iko.soy/typeable/pandoc
on master help sign in
Allow more customization of opendocument styles.

Automatic styles can now be inserted in the template, since the template, not the writer, now provides the enclosing `<office:automatic-styles>` tags. Closes #2520.

commit420c86b69a5491dfa1c775d8274685efc49a17e3 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 14 Nov 2015, 17:19 (11 years ago) parent0f3a68a
2 files changed+2−3
data/templates+1−1 src/Text/Pandoc/Writers/OpenDocument.hs+1−2
data/templates+1−1

Submodule changed.

src/Text/Pandoc/Writers/OpenDocument.hs+1−2
@@ -191,8 +191,7 @@ writeOpenDocument opts (Pandoc meta blocks) =
191191 listStyle (n,l) = inTags True "text:list-style"
192192 [("style:name", "L" ++ show n)] (vcat l)
193193 listStyles = map listStyle (stListStyles s)
194− automaticStyles = inTagsIndented "office:automatic-styles" $ vcat $
195− reverse $ styles ++ listStyles
194+ automaticStyles = vcat $ reverse $ styles ++ listStyles
196195 context = defField "body" body
197196 $ defField "automatic-styles" (render' automaticStyles)
198197 $ metadata