about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-20 09:33:32 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-20 09:33:32 -0500
commit3ff2871b271b25961c70dff6586f76deedade3d3 (patch)
treea2b0e942c7c716bfefee787fa0290fbaa3dc06e4
parent243cbb28611b3666b9c220b27a687317c68f9676 (diff)
add newlines before signature & tags for vanilladon compat
-rw-r--r--app/lib/formatter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index 7623f0acd..590846acb 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -235,13 +235,13 @@ class Formatter
       footer = status.footer
       footer = encode_and_link_urls(footer)
       footer = encode_custom_emojis(footer, status.emojis, options[:autoplay]) if options[:custom_emojify]
-      html = "#{html.strip}<p class=\"signature\">— #{footer}</p>"
+      html = "#{html.strip}\n<p class=\"signature\">— #{footer}</p>"
     end
 
     unless status.tags.blank?
       tags = status.tags.pluck(:name).reject { |t| t.end_with?('.') }.map{ |t| "##{t}" }
       tags = encode_and_link_urls(tags.join(' '))
-      html = "#{html}<p class=\"tags\">#{tags} \xf0\x9f\x8f\xb7</p>"
+      html = "#{html.strip}\n<p class=\"tags\">#{tags} \xf0\x9f\x8f\xb7</p>"
     end
 
     html.html_safe # rubocop:disable Rails/OutputSafety