From 22fdd5dfda8b867095608240e8aaa43ea3122425 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Wed, 22 Jul 2020 18:26:14 +0300 Subject: [PATCH] FIX: Improve email styling of code blocks (#10248) Long numbered code lines were not rendered correctly in some email clients. --- lib/email/styles.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 9b879b29d03..ffd4527eb75 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -196,7 +196,6 @@ module Email style('span.post-count', 'margin: 0 5px; color: #777;') style('pre', 'word-wrap: break-word; max-width: 694px;') 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;')