if (tokenizer.getCurrentType() == Type.LIST_ITEM) {
switch (currentStructureType) {
case UNORDERED_LIST_START:
indent--;
attrList.add(new Attribute(TYPE_ATTR, "li"));
break;
case ORDERED_LIST_START:
indent--;
attrList.add(new Attribute(TYPE_ATTR, "li"));
attrList.add(new Attribute(LI_STYLE_ATTR, "decimal"));
break;
}
} else if (tokenizer.getData() != null) {
attrList.add(new Attribute(TYPE_ATTR, tokenizer.getData()));
}
if (indent > 0) {
attrList.add(new Attribute(INDENT_ATTR, "" + indent));
}
}
AttributesImpl attributes = AttributesImpl.fromUnsortedAttributes(attrList);