mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
8cefb4af1e
commit
e8cc2bdddf
|
@ -1198,13 +1198,15 @@ public class HtmlHelper {
|
|||
}
|
||||
|
||||
static void cleanup(Document d) {
|
||||
for (Element aspace : d.select(".Apple-converted-space"))
|
||||
if (aspace.previousSibling() instanceof TextNode) {
|
||||
TextNode tnode = (TextNode) aspace.previousSibling();
|
||||
for (Element aspace : d.select(".Apple-converted-space")) {
|
||||
Node next = aspace.nextSibling();
|
||||
if (next instanceof TextNode) {
|
||||
TextNode tnode = (TextNode) next;
|
||||
tnode.text(tnode.text() + " ");
|
||||
aspace.remove();
|
||||
} else
|
||||
aspace.replaceWith(new TextNode(" "));
|
||||
}
|
||||
}
|
||||
|
||||
static boolean truncate(Document d, boolean reformat) {
|
||||
|
|
Loading…
Reference in New Issue