From 80589141a3a9efabf29c068502a536a1d55b974d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 8 Feb 2024 17:50:32 +0100 Subject: [PATCH] Prevent extra line after no margin paragraphs --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 2f7888f6f0..07cb867297 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1148,7 +1148,8 @@ public class HtmlHelper { if (TextUtils.isEmpty(p.text())) { p.attr("x-line-before", "false"); - p.attr("x-line-after", "true"); + if (!"false".equals(p.attr("x-line-after"))) + p.attr("x-line-after", "true"); } else p.attr("x-paragraph", "true"); }