about summary refs log tree commit diff
path: root/app/lib/formatter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r--app/lib/formatter.rb1
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