From e867000ff75f91997d1fc02f18d5ae9337ca33be Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 24 Jun 2024 12:26:48 +0200 Subject: [PATCH] Idea for #1641 --- dev/Common/Html.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 3be04553c..e3f97ad69 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -312,9 +312,17 @@ export const // https://github.com/the-djmaze/snappymail/issues/1125 tmpl.content.querySelectorAll('form,button').forEach(oElement => replaceWithChildren(oElement)); + // https://github.com/the-djmaze/snappymail/issues/1641 let body = tmpl.content.querySelector('.mail-body'); [...tmpl.content.querySelectorAll('.mail-body + .mail-body')] .forEach(oElement => body.append(...oElement.childNodes)); +/* + .forEach(oElement => { + let bq = createElement('blockquote'); + bq.append(...oElement.childNodes); + body.replaceWith(bq); + }); +*/ [...tmpl.content.querySelectorAll('*')].forEach(oElement => { const name = oElement.tagName,