Fixed #3461: Check line break before check line width