]> granicus.if.org Git - python/commitdiff
Try to fix the broken links caused by multiple \ref on the same line.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 18 Oct 2002 02:05:47 +0000 (02:05 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 18 Oct 2002 02:05:47 +0000 (02:05 +0000)
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.

Doc/tools/node2label.pl

index a3c6c84a89ed12e8a0f15724d3499971587af1c3..6491b20482204b2fd0daa1074945ea0bbc527275 100755 (executable)
@@ -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) {