]> git.proxmox.com Git - pmg-docs.git/commitdiff
asciidoc-pmg.in: correctly strip service names
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 23 Feb 2017 06:47:44 +0000 (07:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 23 Feb 2017 06:47:44 +0000 (07:47 +0100)
asciidoc-pmg.in

index e473d8bcfa4277009ebde62f6b40e94eaf736816..c0b0cea248e67585e95b311a07b1b52c739860ae 100644 (file)
@@ -605,7 +605,7 @@ if ($clicmd eq 'compile-wiki') {
            die "not title for '$manpage'";
 
        # hack - remove command name prefix from titles
-       $title =~ s/^[a-z]+\s*-\s*//;
+       $title =~ s/^[a-z_\-]+\s+-\s*//;
        
        my $target = $filelist->{$manpage};
        print "|$mantitle 3+|$title|link:$target.html\[$target\]\n";