From 5870856402e3f0e49346b6935b28f9ca3ae1f27f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 14 Feb 2020 16:57:09 +0100 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 11dca87259..03dd95d8aa 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1198,11 +1198,13 @@ public class HtmlHelper { } static void cleanup(Document d) { + // https://www.chromestatus.com/feature/5756335865987072 + // Some messages contain 100 thousands of Apple spaces for (Element aspace : d.select(".Apple-converted-space")) { Node next = aspace.nextSibling(); if (next instanceof TextNode) { TextNode tnode = (TextNode) next; - tnode.text(tnode.text() + " "); + tnode.text(" " + tnode.text()); aspace.remove(); } else aspace.replaceWith(new TextNode(" "));