1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Require line break after signature header

This commit is contained in:
M66B 2019-08-23 07:59:35 +02:00
parent 905b7dd733
commit 86259d7286

View file

@ -2239,7 +2239,9 @@ public class FragmentCompose extends FragmentBase {
for (Element e : rdoc.select("*"))
for (Node node : e.childNodes())
if (node instanceof TextNode &&
"--".equals(((TextNode) node).text().trim()))
"--".equals(((TextNode) node).text().trim()) &&
node.nextSibling() != null &&
"br".equals(node.nextSibling().nodeName()))
signature = node;
if (signature != null) {