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.
commitc85d184668e5c49de5eb0191311bc047f0fdac24
authorBrent Yorgey <byorgey@cis.upenn.edu>
dateThu 4 Oct 2012, 11:16 (14 years ago)
parent3f86127
src/Text/Pandoc/Writers/MediaWiki.hs+1−1
@@ -371,7 +371,7 @@ inlineToMediaWiki _ (RawInline "mediawiki" str) = return str
371371inlineToMediaWiki _ (RawInline "html" str) = return str
372372inlineToMediaWiki _ (RawInline _ _) = return ""
373373
374−inlineToMediaWiki _ (LineBreak) = return "<br />\n"
374+inlineToMediaWiki _ (LineBreak) = return "<br />"
375375
376376inlineToMediaWiki _ Space = return " "
377377