From 26fcb4e993ac2cc080e7bdf1359342c5cf0b0636 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 8 Jul 2021 19:09:57 +0200 Subject: [PATCH] Added support for decimal bullets --- 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 4571c11ffd..fb386ba442 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -2755,7 +2755,8 @@ public class HtmlHelper { if (level > 0) level--; - if (list == null || "ul".equals(list.tagName())) { + if (list == null || ("ul".equals(list.tagName()) && + !(ltype != null && ltype.startsWith("decimal")))) { // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul Object ul; if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P)