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