mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 11:33:09 +02:00
Added support for alphabetical lists
This commit is contained in:
@@ -2916,8 +2916,9 @@ public class HtmlHelper {
|
||||
if (level > 0)
|
||||
level--;
|
||||
|
||||
if (list == null || ("ul".equals(list.tagName()) &&
|
||||
!(ltype != null && ltype.startsWith("decimal")))) {
|
||||
if (list == null ||
|
||||
("ul".equals(list.tagName()) &&
|
||||
!NumberSpan.isSupportedType(ltype))) {
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul
|
||||
Object ul;
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P)
|
||||
@@ -2940,7 +2941,7 @@ public class HtmlHelper {
|
||||
}
|
||||
}
|
||||
|
||||
setSpan(ssb, new NumberSpan(bulletIndent, bulletGap, colorAccent, textSize, level, index), start, ssb.length());
|
||||
setSpan(ssb, new NumberSpan(bulletIndent, bulletGap, colorAccent, textSize, level, index, ltype), start, ssb.length());
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user