mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-14 13:01:54 +00:00
scan-adoc-refs: avoid spaces in blockid_target
This commit is contained in:
parent
a0ba8b4c20
commit
0e1bf0daf7
@ -192,8 +192,8 @@ foreach my $e (@$start_env) {
|
|||||||
my $fn = resolve_link_target($e, $blockid_hash->{$blockid});
|
my $fn = resolve_link_target($e, $blockid_hash->{$blockid});
|
||||||
if ($e eq 'wiki') {
|
if ($e eq 'wiki') {
|
||||||
my $title = $fileinfo->{titles}->{$e}->{$fn};
|
my $title = $fileinfo->{titles}->{$e}->{$fn};
|
||||||
$title =~ s/\s/_/g;
|
|
||||||
$title =~ s/\{pve\}/Proxmox VE/g;
|
$title =~ s/\{pve\}/Proxmox VE/g;
|
||||||
|
$title =~ s/\s/_/g;
|
||||||
die "found not title for '$fn' in env '$e'" if !$title;
|
die "found not title for '$fn' in env '$e'" if !$title;
|
||||||
$fileinfo->{blockid_target}->{$e}->{$blockid} = "link:/wiki/$title#$blockid";
|
$fileinfo->{blockid_target}->{$e}->{$blockid} = "link:/wiki/$title#$blockid";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user