FIX: Large `pre` blocks in emails were increasing the width.

This commit is contained in:
Robin Ward 2013-12-16 14:41:59 -05:00
parent 30d1801703
commit f1a7b63afc
1 changed files with 2 additions and 3 deletions

View File

@ -59,11 +59,10 @@ module Email
style('div.digest-post', 'margin-left: 15px; margin-top: 20px; max-width: 694px;')
style('div.digest-post h1', 'font-size: 20px;')
style('span.footer-notice', 'color:#666; font-size:80%')
style('span.post-count', 'margin: 0 5px; color: #777;')
style('pre', 'white-space: pre-wrap')
style('pre', 'word-wrap: break-word; max-width: 694px;')
style('code', 'background-color: #f1f1ff; padding: 2px 5px;')
style('pre code', 'display: block; background-color: #f1f1ff; padding: 5px')
style('pre code', 'display: block; background-color: #f1f1ff; padding: 5px;')
end
def to_html