warnings.pl: add back formatting for group alias lists

Add back proper formatting for the list of warnings represented by a
group alias.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2022-11-09 19:01:54 -08:00
parent f7163e343c
commit beabb3ccb7

View File

@ -244,7 +244,8 @@ if ($what eq 'c') {
"prefixed by \\c{$pfx-}; currently\n");
# Just commas is bad grammar to be sure, but it is more
# legible than the alternative.
push(@doc, join(scalar(@plist) < 3 ? ' and ' : ',', @plist).".\n");
push(@doc, join(scalar(@plist) < 3 ? ' and ' : ', ',
map { "\\c{$_}" } @plist).".\n");
} elsif ($pfx ne $warn->{name}) {
my $awarn = $aliases{$warn->{name}};
@doc = ($awarn->{help}."\n\n",