From b1e0a9c365d0fdd31c4769cb432152439aca6233 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 20 May 2022 15:28:28 +0200 Subject: [PATCH] Fixed extra new lines sub lists --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 4 +++- 1 file changed, 3 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 def5476211..c120620fe3 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1272,7 +1272,9 @@ public class HtmlHelper { if (view) { Element parent = e.parent(); if ("blockquote".equals(e.tagName()) || parent == null || - !("ol".equals(parent.tagName()) || "ul".equals(parent.tagName()))) { + !("li".equals(parent.tagName()) || + "ol".equals(parent.tagName()) || + "ul".equals(parent.tagName()))) { if (!"false".equals(e.attr("x-line-before"))) e.attr("x-line-before", "true"); if (!"false".equals(e.attr("x-line-after")))