summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]+$//;