From e7b5f2deb51e7df25be314ce4d50f95d5a07ccca Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 4 Jul 2013 16:37:44 -0700 Subject: 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. --- src/Text/Pandoc/Writers/Docx.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- cgit v1.2.3