handle underlining in command name in manual pages
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 28 Mar 1988 05:28:07 +0000 (21:28 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 28 Mar 1988 05:28:07 +0000 (21:28 -0800)
SCCS-vsn: share/man/makewhatis.sed 5.2

usr/src/share/man/makewhatis.sed

index c746062..60b4a89 100644 (file)
@@ -10,7 +10,7 @@
 # software without specific prior written permission. This software
 # is provided ``as is'' without express or implied warranty.
 #
 # software without specific prior written permission. This software
 # is provided ``as is'' without express or implied warranty.
 #
-#      @(#)makewhatis.sed      5.1 (Berkeley) %G%
+#      @(#)makewhatis.sed      5.2 (Berkeley) %G%
 #
 /(\([a-zA-Z0-9]*\).*UNIX Programmer's Manual/ {
        s;.*(\([a-zA-Z0-9]*\).*UNIX.*;\1;
 #
 /(\([a-zA-Z0-9]*\).*UNIX Programmer's Manual/ {
        s;.*(\([a-zA-Z0-9]*\).*UNIX.*;\1;
@@ -23,6 +23,8 @@
        s;.*;;
        N
        s;\n;;
        s;.*;;
        N
        s;\n;;
+       # some twits underline the command name
+       s;_\b;;g
        /^[^     ]/b print
        H
        b name
        /^[^     ]/b print
        H
        b name