about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-18 15:40:34 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:50 -0500
commite411b20711325219695007496ec8db545b67f209 (patch)
treee2570584d844c3cdb67a053070432eaf7e7537fe /app
parent7a0dc34cad955fecba8072f5ed3c179ba5a3fd98 (diff)
correct media reveal wording
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/locales/en.json2
-rw-r--r--app/lib/formatter.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index 8da4c3ddb..9c8dbbb7d 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -353,7 +353,7 @@
   "status.reply": "Reply",
   "status.replyAll": "Reply to thread",
   "status.report": "Report @{name}",
-  "status.sensitive_warning": "Sensitive content",
+  "status.sensitive_warning": "Reveal",
   "status.sensitive_toggle": "Reveal",
   "status.share": "Share",
   "status.show_less": "Hide",
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