diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 0a73ae7ec6..83b8f887ae 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -2213,7 +2213,7 @@ public class HtmlHelper { int llevel = 0; Element lparent = element.parent(); while (lparent != null) { - if ("ol".equals(element.tagName()) || "ul".equals(element.tagName())) + if ("ol".equals(lparent.tagName()) || "ul".equals(lparent.tagName())) llevel++; lparent = lparent.parent(); }