fixed a bug that line breaks character cause style doesn't work