diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-20 09:33:32 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-20 09:33:32 -0500 |
commit | 3ff2871b271b25961c70dff6586f76deedade3d3 (patch) | |
tree | a2b0e942c7c716bfefee787fa0290fbaa3dc06e4 | |
parent | 243cbb28611b3666b9c220b27a687317c68f9676 (diff) |
add newlines before signature & tags for vanilladon compat
-rw-r--r-- | app/lib/formatter.rb | 4 |
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 |