projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4bb7c8
)
Handle man -k output like yum.conf [yum]
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 29 Dec 2008 18:34:05 +0000
(18:34 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 29 Dec 2008 18:34:05 +0000
(18:34 +0000)
man/search.cgi
patch
|
blob
|
history
diff --git
a/man/search.cgi
b/man/search.cgi
index
99bbfe2
..
de53b46
100755
(executable)
--- a/
man/search.cgi
+++ b/
man/search.cgi
@@
-193,7
+193,9
@@
if ($section{'man'}) {
if (/(([^,\s]+).*)\s*\((\S+)\)\s+-\s+(.*)/ &&
!$done{$2,$3}++) {
local ($page, $sect, $desc) = ($1, $3, $4);
- $page = $1 if ($page =~ /\[(.+)\]/);
+ if ($page =~ /^(\S+)\s*\[(.+)\]/) {
+ $page = "$1 $2";
+ }
local @pp = split(/[\s+,]/, $page);
map { s/\((\S+)\)//; } @pp;