mirror of https://github.com/M66B/FairEmail.git
Disabling Apple-converted-space
This commit is contained in:
parent
de4561fac6
commit
2d07650db8
|
@ -3076,15 +3076,17 @@ public class HtmlHelper {
|
||||||
static void cleanup(Document d) {
|
static void cleanup(Document d) {
|
||||||
// https://www.chromestatus.com/feature/5756335865987072
|
// https://www.chromestatus.com/feature/5756335865987072
|
||||||
// Some messages contain 100 thousands of Apple spaces
|
// Some messages contain 100 thousands of Apple spaces
|
||||||
for (Element aspace : d.select(".Apple-converted-space")) {
|
if (false)
|
||||||
Node next = aspace.nextSibling();
|
for (Element aspace : d.select(".Apple-converted-space")) {
|
||||||
if (next instanceof TextNode) {
|
Node next = aspace.nextSibling();
|
||||||
TextNode tnode = (TextNode) next;
|
if (next instanceof TextNode) {
|
||||||
tnode.text(" " + tnode.text());
|
TextNode tnode = (TextNode) next;
|
||||||
aspace.remove();
|
tnode.text(" " + tnode.text());
|
||||||
} else
|
aspace.remove();
|
||||||
aspace.replaceWith(new TextNode(" "));
|
} else
|
||||||
}
|
aspace.replaceWith(new TextNode(" "));
|
||||||
|
Log.i("Replaced Apple-converted-space");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void quoteLimit(Document d, int maxLevel) {
|
static void quoteLimit(Document d, int maxLevel) {
|
||||||
|
|
Loading…
Reference in New Issue