From a0da1e2723a08b4afc12a6e358d3abfdffeb6944 Mon Sep 17 00:00:00 2001 From: Mauro Bieg Date: Mon, 12 Mar 2018 02:20:36 +0100 Subject: Dokuwiki writer: fix LineBreaks in Tables (#4444) fixes #4313 --- src/Text/Pandoc/Writers/DokuWiki.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/DokuWiki.hs b/src/Text/Pandoc/Writers/DokuWiki.hs index dda21d23d..3fd297c00 100644 --- a/src/Text/Pandoc/Writers/DokuWiki.hs +++ b/src/Text/Pandoc/Writers/DokuWiki.hs @@ -479,7 +479,11 @@ inlineToDokuWiki _ il@(RawInline f str) | f == Format "html" = return $ "" ++ str ++ "" | otherwise = "" <$ report (InlineNotRendered il) -inlineToDokuWiki _ LineBreak = return "\\\\\n" +inlineToDokuWiki _ LineBreak = do + backSlash <- stBackSlashLB <$> ask + return $ if backSlash + then "\n" + else "\\\\\n" inlineToDokuWiki opts SoftBreak = case writerWrapText opts of -- cgit v1.2.3