diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 6ae58f5afe..8bb3915321 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -3614,8 +3614,9 @@ public class HtmlHelper { } for (Element line : doc.select("hr")) { - String style = line.attr("style"); - line.attr("style", mergeStyles(style, "display:inline;")); + Element next = line.nextElementSibling(); + if (next != null && "br".equals(next.tagName())) + next.remove(); } return doc.html();