git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Use w:br without attributes for line breaks.

We previously added the attribute `type="textWrapping"`, but this causes problems on Word Online. Closes #5377.

commit66e5f0ff8de0f968d475f5135e0d9362690f2a0a authorJohn MacFarlane <jgm@berkeley.edu> dateThu 21 Mar 2019, 09:28 (8 years ago) parent9573141
3 files changed+1−4
src/Text/Pandoc/Writers/Docx.hs+1−4 test/docx/golden/codeblock.docx test/docx/golden/inline_formatting.docx
src/Text/Pandoc/Writers/Docx.hs+1−4
@@ -1389,10 +1389,7 @@ inlineToOpenXML' opts (Image attr@(imgident, _, _) alt (src, title)) = do
13891389 )
13901390
13911391br :: 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" [] ()]
13961393
13971394-- Word will insert these footnotes into the settings.xml file
13981395-- (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.