|
@@ -4531,11 +4531,11 @@ sub process {
|
|
|
|
|
|
#need space before brace following if, while, etc
|
|
|
if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) ||
|
|
|
- $line =~ /do\{/) {
|
|
|
+ $line =~ /\b(?:else|do)\{/) {
|
|
|
if (ERROR("SPACING",
|
|
|
"space required before the open brace '{'\n" . $herecurr) &&
|
|
|
$fix) {
|
|
|
- $fixed[$fixlinenr] =~ s/^(\+.*(?:do|\)))\{/$1 {/;
|
|
|
+ $fixed[$fixlinenr] =~ s/^(\+.*(?:do|else|\)))\{/$1 {/;
|
|
|
}
|
|
|
}
|
|
|
|