DEVEL15-man-page-html-index-underscores-20080713
authorRuss Allbery <rra@stanford.edu>
Mon, 14 Jul 2008 03:28:00 +0000 (03:28 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 14 Jul 2008 03:28:00 +0000 (03:28 +0000)
LICENSE BSD

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

(cherry picked from commit 6a322e4eb7e79896e3322e0ace16a6ed99668162)

doc/man-pages/generate-html

index 610a7db..e905231 100755 (executable)
@@ -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 ]);