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 187059 - indentation after label is not correct
Summary: indentation after label is not correct
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 01:55 UTC by Masaki Katakai
Modified: 2010-10-21 14:25 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 Masaki Katakai 2010-06-02 01:55:09 UTC
Product Version: NetBeans IDE 6.9 RC2 (Build 201005312001)
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279
System: Mac OS X version 10.5.8 running on x86_64; SJIS; en (nb)

While I edit Java code in editor, it seems that indentation after label is not correct.

For example, when I hit return key after ":" in the line of "mylabel:", cursor moves to the following position of "|".

    mylabel:
        |

By default, "Absolute label indentation" is not checked (on format option dialog), so it should be

    mylabel:
    |

Workaround is to run Format on editor.
Comment 1 Dusan Balek 2010-10-21 14:25:17 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/6a2f0b20c84f