Try to fix the broken links caused by multiple \ref on the same line. SF bug #217195. Not sure if chomp() is correct, but chop() definitely has problems. This change seems to have no ill effects.
Try to fix the broken links caused by multiple \ref on the same line.
SF bug #217195.
Not sure if chomp() is correct, but chop() definitely has problems.
This change seems to have no ill effects.

Backport candidate if Fred agrees.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator