about summary refs log tree commit diff
path: root/app/lib/formatter.rb
diff options
context:
space:
mode:
authorRachel H <rainyday@users.noreply.github.com>2017-04-10 12:32:45 -0700
committerEugen <eugen@zeonfederated.com>2017-04-10 21:32:45 +0200
commitf690320fb93ea1a884a292f9e099eb1bc0834b6d (patch)
tree11bb9046b8197e41fef99f29a1431ba26ab64f7c /app/lib/formatter.rb
parent553170b77acea8867cb67deca7c24ce9e16c9c48 (diff)
Keep newlines in xml (#1397)
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r--app/lib/formatter.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index da7ad2027..c3f331ff7 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -15,7 +15,6 @@ class Formatter
     html = status.text
     html = encode(html)
     html = simple_format(html, {}, sanitize: false)
-    html = html.gsub(/\n/, '')
     html = link_urls(html)
     html = link_mentions(html, status.mentions)
     html = link_hashtags(html)