projects
/
pve-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ba8b4
)
scan-adoc-refs: avoid spaces in blockid_target
author
Dietmar Maurer
<dietmar@proxmox.com>
Sat, 8 Oct 2016 10:56:22 +0000
(12:56 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Sat, 8 Oct 2016 11:40:08 +0000
(13:40 +0200)
scan-adoc-refs
patch
|
blob
|
blame
|
history
diff --git
a/scan-adoc-refs
b/scan-adoc-refs
index 246cd35f26c1548ff82f90dae6cc5de3653acb9d..296f05e8a241b3a697e586ee3dd66f01befd04e2 100755
(executable)
--- a/
scan-adoc-refs
+++ b/
scan-adoc-refs
@@
-192,8
+192,8
@@
foreach my $e (@$start_env) {
my $fn = resolve_link_target($e, $blockid_hash->{$blockid});
if ($e eq 'wiki') {
my $title = $fileinfo->{titles}->{$e}->{$fn};
- $title =~ s/\s/_/g;
$title =~ s/\{pve\}/Proxmox VE/g;
+ $title =~ s/\s/_/g;
die "found not title for '$fn' in env '$e'" if !$title;
$fileinfo->{blockid_target}->{$e}->{$blockid} = "link:/wiki/$title#$blockid";
} else {