diff --git a/internal_packages/composer/lib/composer-view.cjsx b/internal_packages/composer/lib/composer-view.cjsx index feb74fae0..3248d92db 100644 --- a/internal_packages/composer/lib/composer-view.cjsx +++ b/internal_packages/composer/lib/composer-view.cjsx @@ -515,7 +515,7 @@ class ComposerView extends React.Component # We insert empty br tags before quoted text. # Our quoted text parser adds additional document elements onlyHasBr = (/^(]*>)+$/gi).test(body) - onlyHasDoc = (/^<\/head><\/body>$/i).test(body) + onlyHasDoc = (/^<\/head>

<\/body>$/i).test(body) bodyIsEmpty = body.length is 0 or onlyHasBr or onlyHasDoc warnings = [] diff --git a/internal_packages/composer/spec/composer-view-spec.cjsx b/internal_packages/composer/spec/composer-view-spec.cjsx index 25e920d1b..62af958f3 100644 --- a/internal_packages/composer/spec/composer-view-spec.cjsx +++ b/internal_packages/composer/spec/composer-view-spec.cjsx @@ -329,7 +329,7 @@ describe "populated composer", -> useDraft.call @, to: [u1] subject: "Hello World" - body: "" + body: "

" makeComposer.call(@) @composer._sendDraft() expect(Actions.sendDraft).not.toHaveBeenCalled()