Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7bc0fe

Browse files
committed
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.
1 parent d8407a7 commit d7bc0fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tools/node2label.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
shift @parts;
5050
for $node (@parts) {
5151
$node =~ s/[\#\"\'].*$//g;
52-
chop($node);
52+
chomp($node);
5353
if (defined($nodes{$node})) {
5454
$label = $nodes{$node};
5555
if (s/(HREF|href)=([\"\'])$node([\#\"\'])/href=$2$label.html$3/g) {

0 commit comments

Comments
 (0)