X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=asciidoc-pve.in;h=25bb4a02b30961ee449f63e708fc4c3e2143b9e6;hp=f1805c04c2ce97e0f19d2baf4f08c367f15c7a4c;hb=508e00124cf38ebff3d51f2ec81d83b157b31ed1;hpb=5f09af76d7282a043be8fa5439349272f506cf02 diff --git a/asciidoc-pve.in b/asciidoc-pve.in index f1805c0..25bb4a0 100644 --- a/asciidoc-pve.in +++ b/asciidoc-pve.in @@ -72,12 +72,15 @@ sub replace_wiki_xref { $text = $reftext if !length($text); + die "xref: no text for '$blockid'\n" if !$text; + return "$link\[$text\]"; } sub prepare_adoc_file { my ($filename, $attributes) = @_; + return if $prepared_files->{$filename}; print "PREPARE $filename\n";