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.
commite7b5f2deb51e7df25be314ce4d50f95d5a07ccca
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateThu 4 Jul 2013, 16:37 (13 years ago)
parentaab4c47
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -769,7 +769,7 @@ inlineToOpenXML opts (Image alt (src, tit)) = do
769769 return [imgElt]
770770
771771br :: Element
772−br = mknode "w:r" [] [mknode "w:cr" [] () ]
772+br = mknode "w:r" [] [mknode "w:br" [("w:type","textWrapping")] () ]
773773
774774parseXml :: Archive -> String -> IO Element
775775parseXml refArchive relpath =