git.iko.soy/typeable/pandoc
on master help sign in
Docx Writer: Place toc after abstract, rather than before
4d1e85aNikolay Yakimov
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -641,7 +641,7 @@ writeOpenXML opts (Pandoc meta blocks) = do
641 doc' <- (setFirstPara >> blocksToOpenXML opts blocks')
641 doc' <- (setFirstPara >> blocksToOpenXML opts blocks')
642 notes' <- reverse `fmap` gets stFootnotes
642 notes' <- reverse `fmap` gets stFootnotes
643 toc <- makeTOC opts
643 toc <- makeTOC opts
644− let meta' = title ++ subtitle ++ authors ++ date ++ toc ++ abstract
644+ let meta' = title ++ subtitle ++ authors ++ date ++ abstract ++ toc
645 return (meta' ++ doc', notes')
645 return (meta' ++ doc', notes')
646
646
647-- | Convert a list of Pandoc blocks to OpenXML.
647-- | Convert a list of Pandoc blocks to OpenXML.