Mailspring/spec/services
Christine Spang 63a95c2096 fix(rendering): Fix quote stripping of many plaintext emails
Summary:
Since we changed the way we mark up plaintext emails to wrap them in <pre>
tags, the quote stripper has been failing to restore bodies in the cases
where a plaintext email starts with an inline quote (and thus the whole
contents of the <pre> tag is detected as a quote string).

This diff also fixes the HTML sanitizer to not strip off our custom
"nylas-plaintext" class, which isn't currently used for anything but
allows us to definitively know which tags we added on for marking up
plaintext. Might be useful at some point!

Test Plan: unit test included, manual inspection of message display

Reviewers: evan

Differential Revision: https://phab.nylas.com/D3519
2016-12-15 18:40:34 -08:00
..
inline-style-transformer-spec.coffee es6(*): Actions, ConfigSchema => ES2016 2016-10-27 18:48:33 -07:00
quoted-html-transformer-spec.coffee fix(rendering): Fix quote stripping of many plaintext emails 2016-12-15 18:40:34 -08:00
quoted-plain-text-transformer-spec.coffee Move specs into subfolders 2016-10-16 20:10:19 -07:00