git.iko.soy/typeable/pandoc
on master help sign in
Docx Writer: Place toc after abstract, rather than before
commit4d1e85a09e7e1a26a5b715c6bfdfed65a59d13bf authorNikolay Yakimov <root@livid.pp.ru> dateSun 29 Mar 2015, 13:46 (12 years ago) parent79be04d
1 file changed+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -641,7 +641,7 @@ writeOpenXML opts (Pandoc meta blocks) = do
641641 doc' <- (setFirstPara >> blocksToOpenXML opts blocks')
642642 notes' <- reverse `fmap` gets stFootnotes
643643 toc <- makeTOC opts
644− let meta' = title ++ subtitle ++ authors ++ date ++ toc ++ abstract
644+ let meta' = title ++ subtitle ++ authors ++ date ++ abstract ++ toc
645645 return (meta' ++ doc', notes')
646646
647647-- | Convert a list of Pandoc blocks to OpenXML.