AttributeMap st = buf.characterStyleAt(1);
if (!st.equals(AttributeMap.EMPTY_ATTRIBUTE_MAP)) {
errln("Style is wrong.");
}
if (buf.characterStyleStart(1) != 0 || buf.characterStyleLimit(1) != plain.length()) {
errln("Style start is wrong.");
}
st = buf.characterStyleAt(buf.length() - 1);
if (!st.equals(italicStyle)) {