better line break handling