diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java index d8e273ca37bf..9f8085cce238 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovyIndentProcessor.java @@ -222,7 +222,9 @@ public class GroovyIndentProcessor extends GroovyElementVisitor { myResult = getContinuationWithoutFirstIndent(); } else if (TokenSets.BLOCK_SET.contains(myChildType)) { - myResult = getContinuationWithoutFirstIndent(); + if (myChild == ifStatement.getCondition()) { + myResult = getContinuationWithoutFirstIndent(); + } } else if (myChild == ifStatement.getThenBranch()) { myResult = getNormalIndent();