Fixed removing Usenet signature in some cases

This commit is contained in:
M66B 2020-09-29 15:08:09 +02:00
parent f94f250595
commit e5cd9b21c5
1 changed files with 5 additions and 0 deletions

View File

@ -3718,6 +3718,11 @@ public class FragmentCompose extends FragmentBase {
remove = true; remove = true;
else { else {
Node next = node.nextSibling(); Node next = node.nextSibling();
if (next == null) {
Node parent = node.parent();
if (parent != null)
next = parent.nextSibling();
}
if (next != null && "br".equals(next.nodeName())) if (next != null && "br".equals(next.nodeName()))
remove = true; remove = true;
} }