From 86259d72861e54b3602cfa46cb5b4fe7c031c117 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 23 Aug 2019 07:59:35 +0200 Subject: [PATCH] Require line break after signature header --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 7379f7b2a4..715c1a75bf 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -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) {