Mailspring/internal_packages/composer-templates/lib
Ben Gotow 2e2ecf0647 fix(quoted-text): div vs blockquote, signature cleanup #1746
Summary:
Previously we always created <blockquote class="gmail_quote"> to wrap quoted text. This is not correct.
Gmail uses blockquotes only when it wants visual indentation, and <div>s to wrap other quoted text, like forwarded
messages which are not displayed indented.

This diff updates N1 to match Gmail exactly. Note that for replies, Gmail actually nests a blockquote.gmail_quote
inside a div.gmail_quote.

I also updated signature handling because it turns out the regexp that was removing existing signatures would blow
away any and all divs until it reached a <blockquote> tag.

Test Plan: See updated specs. Manually tested by creating a thread in Google Inbox and then performing fwd and reply in both N1 and Inbox. Results match.

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2750
2016-03-17 13:11:00 -07:00
..
main.es6 es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
preferences-templates.cjsx fix(templates): fix when the "no templates" message is displayed 2016-01-20 10:24:45 -08:00
template-composer-extension.es6 fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
template-editor.es6 fix(templates): fix a null check bug in template contentedtable ext 2016-03-10 19:06:15 -08:00
template-picker.jsx remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
template-status-bar.jsx fix(lint): Fix new eslint rule introduced with babel-eslint upgrade. 2016-02-01 20:07:36 -08:00
template-store.es6 fix(quoted-text): div vs blockquote, signature cleanup #1746 2016-03-17 13:11:00 -07:00