summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>1999-09-06 05:38:47 +0000
committerphantom <phantom@FreeBSD.org>1999-09-06 05:38:47 +0000
commitfc46bb827501a8a945e2a061bbd01609ac67b100 (patch)
tree4af2643c414fc7cc49445a05a32b45667ded4fe6 /gnu
parente274489112ecbda81b8593e62a1eca5415a7ccf6 (diff)
downloadFreeBSD-src-fc46bb827501a8a945e2a061bbd01609ac67b100.zip
FreeBSD-src-fc46bb827501a8a945e2a061bbd01609ac67b100.tar.gz
Fix problem with manpages which contain ``-'' (dash) symbol in
Name Description (.Nm) field. PR: bin/13456 Reviewed by: mpp, jkh
Diffstat (limited to 'gnu')
-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 baf77d8..7094c92 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]+$//;
OpenPOWER on IntegriCloud