From 61a526e3bcaff0d8a533e1f22fd6659d7e584ff6 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 20 May 2016 13:44:02 +0200 Subject: [PATCH] Improved css for outlook 2013. --- app/models/channel/email_build.rb | 6 +++++- db/seeds.rb | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/models/channel/email_build.rb b/app/models/channel/email_build.rb index 0befc7c1f..6778481c9 100644 --- a/app/models/channel/email_build.rb +++ b/app/models/channel/email_build.rb @@ -199,6 +199,9 @@ Check if string is a complete html document. If not, add head and css styles. col { width: auto; } + p { + margin: 0; + } code { border: none; background: hsl(0,0%,97%); @@ -238,7 +241,8 @@ 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 - html.gsub('
', '
') + html.gsub!('
', '
') + html.gsub('

', '

') end diff --git a/db/seeds.rb b/db/seeds.rb index 6d67e6cce..0dde55f88 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -4234,7 +4234,7 @@ Trigger.create_or_update( }, perform: { 'notification.email' => { - 'body' => '

Your request (#{config.ticket_hook}#{ticket.number}) has been received and will be reviewed by our support staff.
+ 'body' => '
Your request (#{config.ticket_hook}#{ticket.number}) has been received and will be reviewed by our support staff.

To provide additional information, please reply to this email or click on the following link: #{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id} @@ -4273,7 +4273,7 @@ Trigger.create_or_update( }, perform: { 'notification.email' => { - 'body' => '
Your follow up for (#{config.ticket_hook}#{ticket.number}) has been received and will be reviewed by our support staff.
+ 'body' => '
Your follow up for (#{config.ticket_hook}#{ticket.number}) has been received and will be reviewed by our support staff.

To provide additional information, please reply to this email or click on the following link: #{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}