From: Neal Norwitz Date: Fri, 18 Oct 2002 02:05:47 +0000 (+0000) Subject: Try to fix the broken links caused by multiple \ref on the same line. X-Git-Tag: v2.3c1~3738 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7bc0fec38e1b2de43e09a417907c12dab38e750;p=python 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. --- diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl index a3c6c84a89..6491b20482 100755 --- a/Doc/tools/node2label.pl +++ b/Doc/tools/node2label.pl @@ -49,7 +49,7 @@ while (<>) { shift @parts; for $node (@parts) { $node =~ s/[\#\"\'].*$//g; - chop($node); + chomp($node); if (defined($nodes{$node})) { $label = $nodes{$node}; if (s/(HREF|href)=([\"\'])$node([\#\"\'])/href=$2$label.html$3/g) {