aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-07-04 16:37:44 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-07-04 16:37:44 -0700
commite7b5f2deb51e7df25be314ce4d50f95d5a07ccca (patch)
tree98d8a78ca64bd15aaa00ef4aca774aa18fbfb1ae
parentaab4c47da5c25c9dc284da698b28d351ec033e15 (diff)
downloadpandoc-e7b5f2deb51e7df25be314ce4d50f95d5a07ccca.tar.gz
Docx writer: Use w:br with w:type 'textWrapping' for linebreaks.
Previously we used w:cr. I don't see a difference between these in my version of Word, but apparently some do. Closes #873.
-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 85b9705ac..6348e20d2 100644
--- a/src/Text/Pandoc/Writers/Docx.hs
+++ b/src/Text/Pandoc/Writers/Docx.hs
@@ -769,7 +769,7 @@ inlineToOpenXML opts (Image alt (src, tit)) = do
return [imgElt]
br :: Element
-br = mknode "w:r" [] [mknode "w:cr" [] () ]
+br = mknode "w:r" [] [mknode "w:br" [("w:type","textWrapping")] () ]
parseXml :: Archive -> String -> IO Element
parseXml refArchive relpath =