truncate line according to maxLineWidth option, fixed #8