mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
util: update FIPS checksumming script to be more aggressive with whitespace
Fixes #15562 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15574)
This commit is contained in:
parent
8a5bd05da8
commit
c912e0c616
@ -80,15 +80,7 @@ if ($lang eq 'C') {
|
||||
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
|
||||
|
||||
@ -104,6 +96,10 @@ if ($lang eq 'C') {
|
||||
}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user