From d15ed3170beb2098261595b408d6065463488f7e Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 26 Jul 2021 18:45:22 +0200 Subject: [PATCH] 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 --- scripts/generate_errors.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl index 2a12b8902..7444fabe9 100755 --- a/scripts/generate_errors.pl +++ b/scripts/generate_errors.pl @@ -83,7 +83,7 @@ foreach my $file (@files) { if defined($before) && defined($after); my $description = (defined($before) ? $before : $after); $description =~ s/^\s+//; - $description =~ s/\n( \*)?//g; + $description =~ s/\n( *\*)? */ /g; $description =~ s/\.?\s+$//; push @matches, [$name, $value, $description]; ++$found;