FIX: Improve email styling of code blocks (#10248)

FIX: Improve email styling of code blocks (#10248)

Long numbered code lines were not rendered correctly in some email clients.

diff --git a/lib/email/styles.rb b/lib/email/styles.rb
index 9b879b2..ffd4527 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;')

GitHub sha: 22fdd5df

1 Like

This commit appears in #10248 which was approved by eviltrout. It was merged by nbianca.