Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit c85d184668e5c49de5eb0191311bc047f0fdac24 1 parent 3f86127
Brent Yorgey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/Text/Pandoc/Writers/MediaWiki.hs
View
2  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 " "
Please sign in to comment.
Something went wrong with that request. Please try again.