diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index c1ca18f1e5..22644d1e51 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -366,8 +366,9 @@ public class HtmlHelper { // Prevent too many line breaks for (Element div : document.select("div")) { div.tagName("span"); - if (div.parent() != null) - div.after(document.createElement("br")); + if (div.childNodeSize() == 1 && div.childNode(0) instanceof TextNode) + div.appendElement("br"); + div.appendElement("br"); } Element body = document.body();