Mailspring/internal_packages
Evan Morikawa f399e76408 Fixes T1731: code in iframes renders with white-space: normal
Summary:
Fixes T1731
Chrome by default on a user-agent stylesheet sets white-space to `pre`.
For `pre` elements. This is useful in most cases since whitespace is taken
literally.

Unfortunately when people send out emails with code in them, the `pre`
blocks can get mangled because there may be unnecessary whitespace in
them.

I personally think the default behavior is much better, however, I think
we should have `pre` blocks render with `white-space: normal` because
anyone who's sending an email with code it in will probably use <span> and
<br> and inline styles to ensure it looks correct on most readers. Since
many places (like Outlook) strip whitespace out of HTML, I think we should
mimic that behavior too.

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Maniphest Tasks: T1731

Differential Revision: https://phab.nylas.com/D1561
2015-05-26 18:47:26 -04:00
..
account-sidebar fix(mailto): Handle mailto on application launch, populate NamespaceStore synchronously 2015-05-21 18:08:29 -07:00
attachments fix(naming): Move atom/inbox/nilas refs to Nylas 2015-05-15 11:07:28 -07:00
calendar-bar refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
composer update linter to look at all less files 2015-05-21 14:50:40 -07:00
developer-bar fix(asar): Support ASAR, and running of specs in prod builds 2015-05-21 14:41:30 -07:00
file-list refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
inbox-contact-elements refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
light-ui refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
message-list Fixes T1731: code in iframes renders with white-space: normal 2015-05-26 18:47:26 -04:00
message-templates update linter to look at all less files 2015-05-21 14:50:40 -07:00
mode-switch refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
notification-mailto refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
notification-update-available fix(notifications): Give notifications tag like HTML5 Notifications so you can de-dupe 2015-05-25 10:27:36 -07:00
notifications fix(notifications): Give notifications tag like HTML5 Notifications so you can de-dupe 2015-05-25 10:27:36 -07:00
onboarding fix(spellchecking): Turn off spellcheck on email fields 2015-05-22 17:04:37 -07:00
search-bar fix(asar): Support ASAR, and running of specs in prod builds 2015-05-21 14:41:30 -07:00
sidebar-fullcontact update linter to look at all less files 2015-05-21 14:50:40 -07:00
sidebar-inbox-internal update linter to look at all less files 2015-05-21 14:50:40 -07:00
thread-list fix(mailto): Handle mailto on application launch, populate NamespaceStore synchronously 2015-05-21 18:08:29 -07:00
today refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
tooltip update linter to look at all less files 2015-05-21 14:50:40 -07:00
unread-badge refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
unread-notifications refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00