|
|
@ -2117,7 +2117,11 @@ public class HtmlHelper {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
ssb.setSpan(new BulletSpan(dp6, colorAccent, dp3), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
ssb.setSpan(new BulletSpan(dp6, colorAccent, dp3), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol
|
|
|
|
int index = 0;
|
|
|
|
int index = 0;
|
|
|
|
|
|
|
|
String s = parent.attr("start");
|
|
|
|
|
|
|
|
if (!TextUtils.isEmpty(s) && TextUtils.isDigitsOnly(s))
|
|
|
|
|
|
|
|
index = Integer.parseInt(s) - 1;
|
|
|
|
for (Node child : parent.childNodes()) {
|
|
|
|
for (Node child : parent.childNodes()) {
|
|
|
|
if (child instanceof Element &&
|
|
|
|
if (child instanceof Element &&
|
|
|
|
child.nodeName().equals(element.tagName())) {
|
|
|
|
child.nodeName().equals(element.tagName())) {
|
|
|
|