From 66e5f0ff8de0f968d475f5135e0d9362690f2a0a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 21 Mar 2019 09:28:16 -0700 Subject: 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. --- src/Text/Pandoc/Writers/Docx.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index b9a3d4d7c..a7b9ee621 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -1389,10 +1389,7 @@ inlineToOpenXML' opts (Image attr@(imgident, _, _) alt (src, title)) = do ) br :: Element -br = breakElement "textWrapping" - -breakElement :: String -> Element -breakElement kind = mknode "w:r" [] [mknode "w:br" [("w:type",kind)] () ] +br = mknode "w:r" [] [mknode "w:br" [] ()] -- Word will insert these footnotes into the settings.xml file -- (whether or not they're visible in the document). If they're in the -- cgit v1.2.3