void (XmlTag tag, String name) { String s = tag.getAttributeValue(HtmlUtil.STYLE_ATTRIBUTE_NAME); String addString = Holder.ourTagToCssMap.get(name); if (s == null) { s = addString; } else { for (int i = s.length() - 1; i >= 0; i--) { if (!Character.isSpaceChar(s.charAt(i))) { if (s.charAt(i) != ';') { s += ';'; } break; } } s += " " + addString; } tag.setAttribute(HtmlUtil.STYLE_ATTRIBUTE_NAME, s); }