STABLE14-man-page-html-index-underscores-20080713

LICENSE BSD

Remove underscores from the anchor in the index for all section 5 manual
pages.


(cherry picked from commit 6a322e4eb7)
This commit is contained in:
Russ Allbery 2008-07-14 03:30:55 +00:00
parent 1112a44af3
commit 0bbbd05dbf

View File

@ -122,6 +122,9 @@ sub scan_names {
warn "$dir/$file: cannot find NAME section, skipping\n";
}
$name =~ s/^(backup|bos|fs|fstrace|kas|pts|symlink|uss|vos)_/$1 /;
if ($section eq '5') {
$name =~ s/_/ /g;
}
my $page = $file;
$page =~ s/\.pod$//;
push (@index, [ $section, $name, $page, $desc ]);