aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man/makewhatis/makewhatis.perl
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>1999-09-06 05:38:47 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>1999-09-06 05:38:47 +0000
commitcb0ec4da2e0f089206de6fc3368ee62713b06e0b (patch)
treea0645aece7f96c19794ada434bf512ecccdb893a /gnu/usr.bin/man/makewhatis/makewhatis.perl
parentbbf7ca2249977b753e33403986f6eff1178db1f9 (diff)
downloadsrc-cb0ec4da2e0f089206de6fc3368ee62713b06e0b.tar.gz
src-cb0ec4da2e0f089206de6fc3368ee62713b06e0b.zip
Fix problem with manpages which contain ``-'' (dash) symbol in
Name Description (.Nm) field. PR: bin/13456 Reviewed by: mpp, jkh
Notes
Notes: svn path=/head/; revision=50984
Diffstat (limited to 'gnu/usr.bin/man/makewhatis/makewhatis.perl')
-rw-r--r--gnu/usr.bin/man/makewhatis/makewhatis.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl
index baf77d80e089..7094c92b6cde 100644
--- a/gnu/usr.bin/man/makewhatis/makewhatis.perl
+++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl
@@ -368,7 +368,7 @@ sub manual {
$list .= $_;
$list .= ' ';
} else {
- $list .= '- ' if (!$flag && !/-/);
+ $list .= '- ' if (!$flag && !/^- /);
$flag++;
s/^\.[A-Z][a-z][ \t]*//;
s/[ \t]+$//;