add newlines before signature & tags for vanilladon compat

staging
multiple creatures 2019-07-20 09:33:32 -05:00
parent 243cbb2861
commit 3ff2871b27
1 changed files with 2 additions and 2 deletions

View File

@ -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