xlsx: code refactor for rich text.