diff options
author | Brent Yorgey <byorgey@cis.upenn.edu> | 2012-10-04 11:16:54 -0400 |
---|---|---|
committer | Brent Yorgey <byorgey@cis.upenn.edu> | 2012-10-04 11:16:54 -0400 |
commit | c85d184668e5c49de5eb0191311bc047f0fdac24 (patch) | |
tree | 2124e253cb3c06a81508b52647d40df0d3afa08e | |
parent | 3f86127f5a146d63261a378a826532183ab3a63b (diff) | |
download | pandoc-c85d184668e5c49de5eb0191311bc047f0fdac24.tar.gz |
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.
-rw-r--r-- | src/Text/Pandoc/Writers/MediaWiki.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/MediaWiki.hs b/src/Text/Pandoc/Writers/MediaWiki.hs index 84d7393c1..ca29fe2e1 100644 --- a/src/Text/Pandoc/Writers/MediaWiki.hs +++ b/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 " " |