From 482a65ddf3b5a9249ed489683b936376b0609069 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 28 Feb 2020 17:58:31 +0100 Subject: [PATCH] Wrap preview block quotes in square brackets --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 299889b305..f7c35cd349 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1149,6 +1149,11 @@ public class HtmlHelper { private static String _getText(Document d, boolean full) { truncate(d, !full); + for (Element bq : d.select("blockquote")) { + bq.prependChild(new TextNode("[")); + bq.appendChild(new TextNode("]")); + } + String text = d.text(); if (full) return text;