summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-10-18 02:05:47 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-10-18 02:05:47 (GMT)
commitd7bc0fec38e1b2de43e09a417907c12dab38e750 (patch)
tree597e6dfb8d58e5c20c1687d1be8c6350439cf413 /Doc/tools
parentd8407a70318122cdb84de497ce19615896b9ff62 (diff)
downloadcpython-d7bc0fec38e1b2de43e09a417907c12dab38e750.zip
cpython-d7bc0fec38e1b2de43e09a417907c12dab38e750.tar.gz
cpython-d7bc0fec38e1b2de43e09a417907c12dab38e750.tar.bz2
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.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/node2label.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl
index a3c6c84..6491b20 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) {