This commit is contained in:
the-djmaze 2024-10-27 13:08:52 +01:00
parent cab3b2b78a
commit 709d67226c

View file

@ -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();
}
}