Better support multiline comments for MBEDTLS_ERR_xxx

They were recognized by a prior commit. In this commit, replace line
breaks (with optional comment continuation marker) by spaces.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-07-26 18:45:22 +02:00
parent 80605bba4b
commit d15ed3170b

View file

@ -83,7 +83,7 @@ foreach my $file (@files) {
if defined($before) && defined($after); if defined($before) && defined($after);
my $description = (defined($before) ? $before : $after); my $description = (defined($before) ? $before : $after);
$description =~ s/^\s+//; $description =~ s/^\s+//;
$description =~ s/\n( \*)?//g; $description =~ s/\n( *\*)? */ /g;
$description =~ s/\.?\s+$//; $description =~ s/\.?\s+$//;
push @matches, [$name, $value, $description]; push @matches, [$name, $value, $description];
++$found; ++$found;