Browse Source

Fixes: #5234 - Zammads HTML wrapper should not set a semikolon

(cherry picked from commit 0b4dca82d839952ac8277432e5cfbd1384eb046f)

0b4dca82 Fixes: #5234 - Zammads HTML wrapper should not set a semikolon

Co-authored-by: Martin Gruner <mg@zammad.com>
Martin Gruner 5 days ago
parent
commit
31d0e8dd1f

+ 1 - 1
app/views/mailer/application_wrapper.html.erb

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
     <style type="text/css">
       body {
-        ###html_email_css_font###;
+        ###html_email_css_font###
       }
       img {
         outline: none;

+ 1 - 1
spec/models/channel/email_build_spec.rb

@@ -520,7 +520,7 @@ RSpec.describe Channel::EmailBuild, type: :model do
       before { Setting.set('html_email_css_font', css_font) }
 
       it 'includes the configured css font' do
-        expect(generated_html).to match css_font
+        expect(generated_html).to include("#{css_font}\n")
       end
     end
   end