mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 04:04:50 +08: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");
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue