From f3941b7ee0427761f7e545a7ae402fb22efc8ac9 Mon Sep 17 00:00:00 2001 From: Herve Saint-Amand Date: Fri, 3 Feb 2017 21:22:59 +0000 Subject: [PATCH 1/1] Force the font on every

tag Without this Outlook and Windows Mail don't honour the font set at the top level. Note that this change predates all the screenshots I uploaded to the wiki on 2017-02-02, I'd just forgotten to commit them. --- app/helpers/notifier_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.43.2