Mailspring/internal_packages/message-list/lib
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
..
email-frame.cjsx Fixes T1731: code in iframes renders with white-space: normal 2015-05-26 18:47:26 -04:00
main.cjsx fix(naming): Move atom/inbox/nilas refs to Nylas 2015-05-15 11:07:28 -07:00
message-item.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
message-list.cjsx fix(composer): polish composer edge cases 2015-05-19 16:12:39 -07:00
message-participants.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
message-subject-item.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
message-timestamp.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
message-toolbar-items.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
sidebar-thread-participants.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
thread-archive-button.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
thread-tags-button.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00