From 883f119c871a9fce402ceace8492a3cef06c5e81 Mon Sep 17 00:00:00 2001 From: claremacrae Date: Mon, 19 Aug 2013 08:09:52 +0100 Subject: Removed unnecessary line-break after hard break in dokuwiki writer (#386) --- src/Text/Pandoc/Writers/DokuWiki.hs | 2 +- tests/writer.dokuwiki | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Text/Pandoc/Writers/DokuWiki.hs b/src/Text/Pandoc/Writers/DokuWiki.hs index ec22a5a82..523c4d180 100644 --- a/src/Text/Pandoc/Writers/DokuWiki.hs +++ b/src/Text/Pandoc/Writers/DokuWiki.hs @@ -431,7 +431,7 @@ inlineToDokuWiki _ (RawInline "mediawiki" str) = return str inlineToDokuWiki _ (RawInline "html" str) = return str inlineToDokuWiki _ (RawInline _ _) = return "" -inlineToDokuWiki _ (LineBreak) = return "\\\\\n" +inlineToDokuWiki _ (LineBreak) = return "\\\\ " inlineToDokuWiki _ Space = return " " diff --git a/tests/writer.dokuwiki b/tests/writer.dokuwiki index 9855f30dd..4b9d459c8 100644 --- a/tests/writer.dokuwiki +++ b/tests/writer.dokuwiki @@ -36,8 +36,7 @@ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Beca Here’s one with a bullet. * criminey. -There should be a hard line break\\ -here. +There should be a hard line break\\ here. ---- -- cgit v1.2.3