mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 00:15:44 +00:00
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.
This commit is contained in:
@@ -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 " "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user