Improve line break handling.