Add line breaks in the right place