X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/60e1895da18f50de51d361d80ee515de2b53e2f7..f3941b7ee0427761f7e545a7ae402fb22efc8ac9:/app/helpers/notifier_helper.rb diff --git a/app/helpers/notifier_helper.rb b/app/helpers/notifier_helper.rb index 3e53e2543..23ee45648 100644 --- a/app/helpers/notifier_helper.rb +++ b/app/helpers/notifier_helper.rb @@ -20,6 +20,9 @@ module NotifierHelper end def style_message(html) - html.gsub /

/, '

' + # Because we can't use stylesheets in HTML emails, we need to inline the + # styles. Rather than copy-paste the same string of CSS into every message, + # we apply it once here, after the message has been composed. + html.gsub /

/, '

' end end