attempt to escape newlines in definitions text