Skip to content

Commit

Permalink
Restore prettiness after last fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Mar 2, 2011
1 parent 2ea3b0f commit b29d217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compilers/opsc/src/Ops/Op.pm
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,15 @@ our method to_c:pasttype<if> (PAST::Op $chunk, %c) {
# 'then'
# single statement. Make it pretty.

@res.push($chunk[1] ~~ PAST::Block ?? " " !! "\n");
@res.push($chunk[1] ~~ PAST::Block ?? " " !! "\n " ~ indent(%c));
@res.push(self.to_c($chunk[1], %c));

# 'else'
if $chunk[2] {
@res.push(indent(%c));
@res.push("else");
# single statement. Make it pretty.
@res.push($chunk[2] ~~ PAST::Block ?? " " !! "\n");
@res.push($chunk[2] ~~ PAST::Block ?? " " !! "\n " ~ indent(%c));

@res.push(self.to_c($chunk[2], %c));
}
Expand Down

0 comments on commit b29d217

Please sign in to comment.