Permalink
Browse files

Remove newline after <br/> in translation of LineBreak

There's no particular need for a newline (other than making the
generated MediaWiki source look nice to a human), and in fact
sometimes it is incorrect: in particular, inside an enumeration, list
items cannot have embedded newline characters.
  • Loading branch information...
Brent Yorgey
Brent Yorgey committed Oct 4, 2012
1 parent 3f86127 commit c85d184668e5c49de5eb0191311bc047f0fdac24
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Text/Pandoc/Writers/MediaWiki.hs
@@ -371,7 +371,7 @@ inlineToMediaWiki _ (RawInline "mediawiki" str) = return str
inlineToMediaWiki _ (RawInline "html" str) = return str
inlineToMediaWiki _ (RawInline _ _) = return ""
-inlineToMediaWiki _ (LineBreak) = return "<br />\n"
+inlineToMediaWiki _ (LineBreak) = return "<br />"
inlineToMediaWiki _ Space = return " "

0 comments on commit c85d184

Please sign in to comment.