tidy-up: add space around operators, where missing

Closes #21793
This commit is contained in:
Viktor Szakats 2026-05-28 09:23:27 +02:00
parent de9bb509d1
commit 9591ff123d
No known key found for this signature in database
34 changed files with 128 additions and 128 deletions

View file

@ -754,7 +754,7 @@ sub scanfile {
my $cond = $4;
if($cond =~ / = /) {
checkwarn("ASSIGNWITHINCONDITION",
$line, $pos+1, $file, $l,
$line, $pos + 1, $file, $l,
"assignment within conditional expression");
}
my $temp = $cond;

View file

@ -82,7 +82,7 @@ awk '
{
if(length($0)) {
num++;
n = sprintf("%s%s%s,", n, length(n)?" ":"", $0);
n = sprintf("%s%s%s,", n, length(n) ? " " : "", $0);
#print n;
if(length(n) > 77) {
printf(" %s\n", p);
@ -93,7 +93,7 @@ awk '
}
END {
pp=substr(p,1,length(p)-1);
pp = substr(p, 1, length(p) - 1);
printf(" %s\n", pp);
printf(" (%d contributors)\n", num);
}

View file

@ -89,8 +89,8 @@ my $colwidth=79; # max number of columns
sub prefixline {
my ($num) = @_;
print "\t" x ($num/8);
print ' ' x ($num%8);
print "\t" x ($num / 8);
print ' ' x ($num % 8);
}
sub justline {
@ -868,7 +868,7 @@ sub single {
if($count == ($num -1)) {
$sep = " and ";
}
$mstr .= sprintf "%s$l", $mstr?$sep:"";
$mstr .= sprintf "%s$l", $mstr ? $sep : "";
$count++;
}
push @foot, overrides($standalone,
@ -1202,7 +1202,7 @@ sub listglobals {
close(F);
}
for my $e (0 .. $#globalopts) {
$globals .= sprintf "%s--%s", $e?($globalopts[$e+1] ? ", " : " and "):"",
$globals .= sprintf "%s--%s", $e ? ($globalopts[$e + 1] ? ", " : " and ") : "",
$globalopts[$e],;
}
}