aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikolay Yakimov <root@livid.pp.ru>2015-03-29 13:46:34 +0300
committerNikolay Yakimov <root@livid.pp.ru>2015-03-29 13:46:34 +0300
commit4d1e85a09e7e1a26a5b715c6bfdfed65a59d13bf (patch)
treec096ab3da397840520cdbf28f03e829ffda51003 /src
parent79be04df69bdc5464ecc9daf68e028dc8abdfb33 (diff)
downloadpandoc-4d1e85a09e7e1a26a5b715c6bfdfed65a59d13bf.tar.gz
Docx Writer: Place toc after abstract, rather than before
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Docx.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs
index b019ab73f..98e49fd62 100644
--- a/src/Text/Pandoc/Writers/Docx.hs
+++ b/src/Text/Pandoc/Writers/Docx.hs
@@ -641,7 +641,7 @@ writeOpenXML opts (Pandoc meta blocks) = do
doc' <- (setFirstPara >> blocksToOpenXML opts blocks')
notes' <- reverse `fmap` gets stFootnotes
toc <- makeTOC opts
- let meta' = title ++ subtitle ++ authors ++ date ++ toc ++ abstract
+ let meta' = title ++ subtitle ++ authors ++ date ++ abstract ++ toc
return (meta' ++ doc', notes')
-- | Convert a list of Pandoc blocks to OpenXML.