Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Resolve #1815
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Oct 27, 2024
1 parent cab3b2b commit 709d672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendors/squire2/dist/squire-raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 709d672

Please sign in to comment.