Browse Source

Fixed multi line signatures

main
M66B 6 years ago
parent
commit
77f16a0caf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -716,7 +716,7 @@ public class FragmentCompose extends FragmentEx {
body = body.replaceAll("\\r?\\n", "<br />"); body = body.replaceAll("\\r?\\n", "<br />");
if (pro && !TextUtils.isEmpty(account.signature)) if (pro && !TextUtils.isEmpty(account.signature))
body = "<br>" + account.signature + "<br>" + body;
body = "<br>" + account.signature.replaceAll("\\r?\\n", "<br />") + "<br>" + body;
} else { } else {
draft.thread = ref.thread; draft.thread = ref.thread;
@ -768,7 +768,7 @@ public class FragmentCompose extends FragmentEx {
} }
if (pro && !TextUtils.isEmpty(account.signature)) if (pro && !TextUtils.isEmpty(account.signature))
body = "<br>" + account.signature + "<br>" + body;
body = "<br>" + account.signature.replaceAll("\\r?\\n", "<br />") + "<br>" + body;
} }
draft.received = new Date().getTime(); draft.received = new Date().getTime();


Loading…
Cancel
Save