X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a371aad9ac2f177eee761e8c0bfb0d358796373f..cca78f979060e6c8fd4ffcbf58a2e3361502aa99:/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