From ee0c0f9ef1f2d3f2db32d6dfed3598ba6e636c57 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 6 Sep 2020 16:47:49 +0200 Subject: [PATCH] Prevent empty blockquotes --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 7bfa643ee4..347b53a536 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -2055,6 +2055,8 @@ public class HtmlHelper { case "blockquote": if (start == 0 || ssb.charAt(start - 1) != '\n') ssb.insert(start++, "\n"); + if (start == ssb.length()) + ssb.append(' '); if (ssb.length() == 0 || ssb.charAt(ssb.length() - 1) != '\n') ssb.append("\n");