From: Fred Drake Date: Fri, 18 Oct 2002 14:38:25 +0000 (+0000) Subject: Backport Neal Norwitz's patch from revision 1.14: X-Git-Tag: v2.2.3c1~292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92ff4af76fab30c3fdc8c96b71e799133489b9dc;p=thirdparty%2FPython%2Fcpython.git Backport Neal Norwitz's patch from revision 1.14: Don't screw up the names of the nodes we're looking up. This fixes two SF bugs: 217195 - Broken \ref link in documentation 484967 - bad links at Ref Guide --- diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl index 90f0c18933a5..d9d08159acc7 100755 --- a/Doc/tools/node2label.pl +++ b/Doc/tools/node2label.pl @@ -44,7 +44,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) {