From d7f45236cdb2222af93ea35aaef7f50ad9b5a1a8 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 9 Jul 2021 06:52:28 +0200 Subject: [PATCH] Fixed escaping indents --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 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 6f103463e0..b136a950cc 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -654,7 +654,7 @@ public class FragmentCompose extends FragmentBase { int s = text.getSpanStart(indent); int e = text.getSpanEnd(indent); int f = text.getSpanFlags(indent); - if (e - 1 > s && added + 2 == e) { + if (e - 1 > s && added + 1 == e) { text.removeSpan(indent); text.setSpan(new IndentSpan(indent.getLeadingMargin(true)), s, e - 1, f); }