Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thrownblown authored Aug 28, 2018
1 parent 9f5a2bd commit 073cf2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions betty-style.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3541,7 +3541,7 @@ sub process {
$fixedline =~ s/\s*=\s*$/ = {/;
fix_insert_line($fixlinenr, $fixedline);
$fixedline = $line;
$fixedline =~ s/^(.\s*){\s*/$1/;
$fixedline =~ s/^(.\s*)\{\s*/$1/;
fix_insert_line($fixlinenr, $fixedline);
}
}
Expand Down Expand Up @@ -3971,7 +3971,7 @@ sub process {
my $fixedline = rtrim($prevrawline) . " {";
fix_insert_line($fixlinenr, $fixedline);
$fixedline = $rawline;
$fixedline =~ s/^(.\s*){\s*/$1\t/;
$fixedline =~ s/^(.\s*)\{\s*/$1\t/;
if ($fixedline !~ /^\+\s*$/) {
fix_insert_line($fixlinenr, $fixedline);
}
Expand Down Expand Up @@ -4461,7 +4461,7 @@ sub process {
if (ERROR("SPACING",
"space required before the open brace '{'\n" . $herecurr) &&
$fix) {
$fixed[$fixlinenr] =~ s/^(\+.*(?:do|\))){/$1 {/;
$fixed[$fixlinenr] =~ s/^(\+.*(?:do|\)))\{/$1 {/;
}
}

Expand Down

0 comments on commit 073cf2f

Please sign in to comment.