From 709d67226ce1965351285067b8c638cd90d9a064 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 27 Oct 2024 13:08:52 +0100 Subject: [PATCH] Resolve #1815 --- vendors/squire2/dist/squire-raw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendors/squire2/dist/squire-raw.js b/vendors/squire2/dist/squire-raw.js index d69f0abe5..de1705bbc 100644 --- a/vendors/squire2/dist/squire-raw.js +++ b/vendors/squire2/dist/squire-raw.js @@ -538,8 +538,8 @@ const brs = node.querySelectorAll("BR:last-child"); let l = brs.length; while (l--) { - const br = brs[l]; - if (!isLineBreak(br)) { + const br = brs[l], parent = br.parentElement; + if (!br.nextSibling && 1 === parent.children.length && parent.textContent.trim().length) { br.remove(); } }