fixes line breaks in references