git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Use w:br without attributes for line breaks.
66e5f0fJohn MacFarlane
src/Text/Pandoc/Writers/Docx.hs+1−4
@@ -1389,10 +1389,7 @@ inlineToOpenXML' opts (Image attr@(imgident, _, _) alt (src, title)) = do
1389 )
1389 )
1390
1390
1391br :: Element
1391br :: Element
1392−br = breakElement "textWrapping"
1393−
1394−breakElement :: String -> Element
1395−breakElement kind = mknode "w:r" [] [mknode "w:br" [("w:type",kind)] () ]
1392+br = mknode "w:r" [] [mknode "w:br" [] ()]
1396
1393
1397-- Word will insert these footnotes into the settings.xml file
1394-- Word will insert these footnotes into the settings.xml file
1398-- (whether or not they're visible in the document). If they're in the
1395-- (whether or not they're visible in the document). If they're in the
test/docx/golden/codeblock.docx

Binary file not shown.

test/docx/golden/inline_formatting.docx

Binary file not shown.