X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=asciidoc-pve.in;h=d1a754d5a0f5034d15e4f95a4287d4065b12c1c8;hp=70848ca79df250b98723b719b87f8e933cf79b7f;hb=d562163644b7c01e5e7ad54cbb1e99a61c53fe1e;hpb=b965ad63ad80b5967f5bc1f0327eb548b6049045 diff --git a/asciidoc-pve.in b/asciidoc-pve.in index 70848ca..d1a754d 100644 --- a/asciidoc-pve.in +++ b/asciidoc-pve.in @@ -146,7 +146,10 @@ sub replace_man_xref { die "xref: no text for man page link '$blockid'\n" if !$text; my $section = $fileinfo->{mansection}->{manvolnum}->{$link}; - die "link target is not a manual page" if !defined($section); + if (!defined($section)) { + warn "link '$blockid' target '$link' is not a manual page, ignoring\n"; + return "$text"; + } if ($man_target eq 'html') {