fix line breaks on reference links