Permalink
Browse files

changed formatting of the C# Case statement

  • Loading branch information...
1 parent 31b1a2d commit 1627337fccd56c00a78e27f0b17b33d2b1fea971 @arturek arturek committed Aug 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs
@@ -1738,8 +1738,9 @@ public object VisitSwitchSection (SwitchSection switchSection, object data)
formatter.Indent ();
foreach (var statement in switchSection.Statements) {
- NewLine ();
statement.AcceptVisitor (this, data);
+ if(switchSection.NextSibling != null)
+ NewLine();
}
if (policy.IndentCaseBody)

0 comments on commit 1627337

Please sign in to comment.