Skip to content

Commit

Permalink
util: update FIPS checksumming script to be more aggressive with whit…
Browse files Browse the repository at this point in the history
…espace

Fixes openssl#15562

Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#15574)
  • Loading branch information
paulidale committed Jun 3, 2021
1 parent 8a5bd05 commit c912e0c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions util/lang-compress.pl
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,7 @@
s{
(?| # All things preserved end up in $1
(\n)\h+ # Spaces at start of lines removed
|
\h+(\n) # Spaces at end of lines removed
|
\h+ # Other horizontal spaces replaced with one
\h+ # Horizontal spaces replaced with one
| # OR
Expand All @@ -104,6 +96,10 @@
}
defined $1 ? $1 : " "
}gsxe;

# Clean up spaces at start and end of lines
s/^ //mg;
s/ $//mg;
} elsif ($lang eq 'S') {
# Because we use C++ style comments in our .S files, all we can do
# is to drop them
Expand Down

0 comments on commit c912e0c

Please sign in to comment.