diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/formatter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 42911b52a..9005ec768 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -216,6 +216,7 @@ class Formatter end def format_markdown(html) + html = html.gsub("\r\n", "\n").gsub("\r", "\n") html = reformat(markdown_formatter.render(html)) html.delete("\r").delete("\n") end |