mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 16:26:44 +03:00
Resolve #1815
This commit is contained in:
parent
cab3b2b78a
commit
709d67226c
1 changed files with 2 additions and 2 deletions
4
vendors/squire2/dist/squire-raw.js
vendored
4
vendors/squire2/dist/squire-raw.js
vendored
|
|
@ -538,8 +538,8 @@
|
||||||
const brs = node.querySelectorAll("BR:last-child");
|
const brs = node.querySelectorAll("BR:last-child");
|
||||||
let l = brs.length;
|
let l = brs.length;
|
||||||
while (l--) {
|
while (l--) {
|
||||||
const br = brs[l];
|
const br = brs[l], parent = br.parentElement;
|
||||||
if (!isLineBreak(br)) {
|
if (!br.nextSibling && 1 === parent.children.length && parent.textContent.trim().length) {
|
||||||
br.remove();
|
br.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue