]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/notifier_helper.rb
Apply inline styling to all <p> tags
[rails.git] / app / helpers / notifier_helper.rb
index 5889b6ff827223c46a213bc2c345ad4f9c330713..be01e5391a2a41e8672309474f0c32dbd017f994 100644 (file)
@@ -18,4 +18,8 @@ module NotifierHelper
       :locals => { :body => capture(&block) }
     )
   end
+
+  def apply_inline_css(html)
+    html.gsub /<p>/, '<p style="color: black; margin: 0.75em 0">'
+  end
 end