# HG changeset patch # User dadubrow # Date 1272558621 18000 # Node ID 6d6cf3bdff4379f44f199aef9ca8aeb1859e4f57 # Parent 3b27a90d61619c9ca1b4305ced5fad0309dcd467 Bug 11179 fix indentation for blocks diff -r 3b27a90d6161 -r 6d6cf3bdff43 cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java --- a/cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java Tue Apr 13 09:45:35 2010 -0500 +++ b/cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java Thu Apr 29 11:30:21 2010 -0500 @@ -1277,6 +1277,7 @@ case Symbols.TokenWHILE: case Symbols.TokenFOR: case Symbols.TokenTRY: + fIndent += fPrefs.prefIndentBracesForBlocks ? 1 : 0; return fPosition; case Symbols.TokenCLASS: