]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/notifier_helper.rb
Use the same fonts for the footer text as for the rest of the mail
[rails.git] / app / helpers / notifier_helper.rb
index 3e53e2543c006a57f9dee08113099abd892df457..23ee45648267d826139b8ae3fc690199e5c5696a 100644 (file)
@@ -20,6 +20,9 @@ module NotifierHelper
   end
 
   def style_message(html)
-    html.gsub /<p>/, '<p style="color: black; margin: 0.75em 0">'
+    # 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 /<p>/, '<p style="color: black; margin: 0.75em 0; font-family: \'Helvetica Neue\', Arial, Sans-Serif">'
   end
 end