mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 16:26:08 +08:00
1e146f6781
Summary: Fixes T2276 Since the new `QuotedHTMLParser` uses full HTML parsing, when you ask it for the version of the document without the quoted nodes, it returns a full html document. Unfortunately I forgot about the 2 <br> tags we manually generate when creating a reply to a message with quoted text. This is a pretty brittle solution, but considerably easier then checking if the contents really are "blank". We could check innerText, but would have to worry about img tags and other text-invisible-but-still-valid elements. Since we control the generation of the reply in the `DraftStore`, I think this is acceptable for now Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Maniphest Tasks: T2276 Differential Revision: https://phab.nylas.com/D1730 |
||
---|---|---|
.. | ||
composer-view-spec.cjsx | ||
contenteditable-component-spec.cjsx | ||
contenteditable-quoted-text-spec.cjsx | ||
participants-text-field-spec.cjsx |