mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Handle empty [] after man page
This commit is contained in:
@@ -193,7 +193,7 @@ if ($section{'man'}) {
|
||||
if (/(([^,\s]+).*)\s*\((\S+)\)\s+-\s+(.*)/ &&
|
||||
!$done{$2,$3}++) {
|
||||
local ($page, $sect, $desc) = ($1, $3, $4);
|
||||
$page = $1 if ($page =~ /\[(.*)\]/);
|
||||
$page = $1 if ($page =~ /\[(.+)\]/);
|
||||
local @pp = split(/[\s+,]/, $page);
|
||||
map { s/\((\S+)\)//; } @pp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user