]> git.proxmox.com Git - pmg-docs.git/blobdiff - asciidoc-pmg.in
add documentation for RAR support
[pmg-docs.git] / asciidoc-pmg.in
index 443afe622bf75a0f013feeb38c97b9031399dde9..74899e8dc8240eae163de85ff44f3d45cc002b83 100644 (file)
@@ -146,7 +146,11 @@ 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);
+    # 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') {
@@ -319,6 +323,7 @@ sub compile_asciidoc {
     } elsif ($env eq 'default') {
        die "$infile: wrong doctype\n" if $doctype != 0;
        $attributes->{toc} = undef;
+       $attributes->{toc2} = undef;
     }
 
     if (!defined($outfile)) {