diff --git a/app/models/channel/email_build.rb b/app/models/channel/email_build.rb index 22c8082ca..8762d2591 100644 --- a/app/models/channel/email_build.rb +++ b/app/models/channel/email_build.rb @@ -241,7 +241,7 @@ Add/change markup to display html in any mail client nice. def self.html_mail_client_fixes(html) # https://github.com/martini/zammad/issues/165 - new_html = html.gsub('
', '
') + new_html = html.gsub('
', '
') new_html.gsub!('

', '

') new_html end diff --git a/test/unit/email_build_test.rb b/test/unit/email_build_test.rb index 4c592a347..23d3b80bd 100644 --- a/test/unit/email_build_test.rb +++ b/test/unit/email_build_test.rb @@ -177,13 +177,13 @@ text html_with_fixes = Channel::EmailBuild.html_mail_client_fixes(html_raw) assert_not_equal(html_with_fixes, html_raw) - html_should = '

some + html_should = '
some text
123 -
some +
some text
' assert_equal(html_should, html_with_fixes)