mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-04 05:07:46 +00:00
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.
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user