diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index ee8e5a10e3..0ffd212dba 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1581,7 +1581,7 @@ public class HtmlHelper { int start = ssb.getSpanStart(span); int end = ssb.getSpanEnd(span); - for (int i = end - 1; i >= start; i--) + for (int i = end - 2; i >= start; i--) if (ssb.charAt(i) == '\n') if (i + 1 < ssb.length() && ssb.charAt(i + 1) == '>') ssb.insert(i + 1, ">");