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.
This commit is contained in:
parent
d8407a7031
commit
d7bc0fec38
@ -49,7 +49,7 @@ while (<>) {
|
|||||||
shift @parts;
|
shift @parts;
|
||||||
for $node (@parts) {
|
for $node (@parts) {
|
||||||
$node =~ s/[\#\"\'].*$//g;
|
$node =~ s/[\#\"\'].*$//g;
|
||||||
chop($node);
|
chomp($node);
|
||||||
if (defined($nodes{$node})) {
|
if (defined($nodes{$node})) {
|
||||||
$label = $nodes{$node};
|
$label = $nodes{$node};
|
||||||
if (s/(HREF|href)=([\"\'])$node([\#\"\'])/href=$2$label.html$3/g) {
|
if (s/(HREF|href)=([\"\'])$node([\#\"\'])/href=$2$label.html$3/g) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user