This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The editor failed to indent correctly on the following cases. for (int i=0; i<n; i++) for (int j=0; j<n; j++) a[i][j]=0; ^ ^//The first "^" indicate the correct indentation while the editor believes the latter would be right. for (...) if (...) ... //same problem here. And the problem also exists in situations where deeper nesting is involved, for example, the 4-level nesting when coding Floyed-Warshall algorithm.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/6137fde48934
Integrated into 'main-golden', will be available in build *201001100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6137fde48934 User: alexvsimon@netbeans.org Log: fixed BZ#178867 Wrong indentation: nested "for", "if", etc without curly braces
verified in trunk build 201001150201
The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/fb8323b5ccf6
verified in patch1 candidate