From e168a4a4f5efb6b94a30b77b0523c390247b3c4e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 27 Mar 2022 14:35:12 +0200 Subject: [PATCH] Revert "Fixed line break after lines" This reverts commit df3e0e132ac7958544c5463dd57f982aab101310. --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();