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.

Bug 29904 - Incorrect indent of left parentheses on newline following if, when, etc.
Summary: Incorrect indent of left parentheses on newline following if, when, etc.
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: cpplite (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 16:04 UTC by anemone2
Modified: 2009-12-21 07:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anemone2 2003-01-09 16:04:07 UTC
When typing text into a c file, the left paren is usually aligned with the 'if' statement on the line 
above.  Currently, it remains indented.

As a proposed fix, I changed CPPSettingsDefaults by adding the "case '{' " line.  The snippet is 
enclosed.

public static final Acceptor defaultIndentHotCharsAcceptor
    = new Acceptor() {
        public boolean accept(char ch) {
            switch (ch) {
                case '{':   // FIX 
                case '}':
                    return true;
            }

            return false;
        }
    };
Comment 1 Jiri Prox 2007-09-17 20:21:09 UTC
Obsolete milestone, please reevaluate
Comment 2 Quality Engineering 2009-12-21 07:02:53 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team