mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Revert previous change; there's a better way to do it.
This commit is contained in:
parent
00f7da4f1e
commit
ec5c0b41ae
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ while (<>) {
|
||||||
if (defined($nodes{$node})) {
|
if (defined($nodes{$node})) {
|
||||||
$label = $nodes{$node};
|
$label = $nodes{$node};
|
||||||
if (s/(HREF|href)=\"$node([\#\"])/$1=\"$label.html$2/g) {
|
if (s/(HREF|href)=\"$node([\#\"])/$1=\"$label.html$2/g) {
|
||||||
s/(HREF|href)=\"$label.html#l2h-\d+/$1=\"$label.html/g;
|
s/(HREF|href)=\"$label.html#(l2h-)?SECTION\d+/$1=\"$label.html/g;
|
||||||
$newnames{$node} = "$label.html";
|
$newnames{$node} = "$label.html";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue