Added setting to enable removing of signatures

This commit is contained in:
M66B
2020-02-05 10:13:17 +01:00
parent bddcb11305
commit 32ece5079f
4 changed files with 26 additions and 4 deletions

View File

@@ -3065,8 +3065,8 @@ public class FragmentCompose extends FragmentBase {
Document d = JsoupEx.parse(Helper.readText(ref.getFile(context)));
// Remove signature separators
boolean usenet = prefs.getBoolean("usenet_signature", false);
if (usenet)
boolean remove_signatures = prefs.getBoolean("remove_signatures", false);
if (remove_signatures)
d.body().filter(new NodeFilter() {
private boolean remove = false;