Skip to content

Commit

Permalink
Don't replace elsif with else
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Nov 20, 2012
1 parent 610cf40 commit d77d843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppetparser.pl
Expand Up @@ -585,7 +585,7 @@ sub output_children {
}
# Formatting fixups
$buf =~ s/\n{3,}/\n\n/gs;
$buf =~ s/}\n\n\s*(else|elsif) /} else /gs;
$buf =~ s/}\n\n\s*(else|elsif) /} $1 /gs;
return $buf;
}

Expand Down

0 comments on commit d77d843

Please sign in to comment.