From ba1a08510eb9574803955a9a2e6e7a8f7b2d1a43 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 26 Mar 2020 14:24:07 +0200 Subject: [PATCH] FIX: Use correct spacing in emails with code (#9274) Follow-up-to 778454e26b5c38c94dad6ccbc9f11439a51f6b6d --- lib/email/styles.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 0b6c3f8d77a..4d299fcff32 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -195,7 +195,8 @@ module Email style('div.summary-footer', 'color:#666; font-size:95%; text-align:center; padding-top:15px;') style('span.post-count', 'margin: 0 5px; color: #777;') style('pre', 'word-wrap: break-word; max-width: 694px;') - style('code', 'background-color: #f1f1ff; line-height: 50%; padding: 2px 5px;') + style('code', 'background-color: #f1f1ff; padding: 2px 5px;') + style('code ol', 'line-height: 50%;') style('pre code', 'display: block; background-color: #f1f1ff; padding: 5px;') style('.featured-topic a', "text-decoration: none; font-weight: bold; color: #{SiteSetting.email_link_color}; line-height:1.5em;") style('.secure-image-notice', 'font-style: italic; background-color: #f1f1ff; padding: 5px;')