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 169709 - Editor adds 2 tabs indentation instead of one
Summary: Editor adds 2 tabs indentation instead of one
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 09:25 UTC by Alexandr Scherbatiy
Modified: 2010-03-18 11:01 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 Alexandr Scherbatiy 2009-08-03 09:25:19 UTC
marina-netbeans-plugin ยป #228

  Product Version         = NetBeans IDE 6.7.1 (Build 200907202301)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.

Steps to reproduce:

- type in the editor:
-----------------------------------
for(i in [0..3]){        
}
-----------------------------------

- Position the cursor at the end of the 'for(i in [0..3]){' line and press Enter
There are 2 tabs before the cursor position instead of one: 
-----------------------------------
for(i in [0..3]){
        println("");  // 2 tabs indentation  
} 
-----------------------------------

Should be:
-----------------------------------
for(i in [0..3]){
    println("");  // 1 tab indentation
}
-----------------------------------


The situation even worse when using palette elements:

-----------------------------------
Stage {
        title : "MyApp"
        scene: Scene {
                width: 200
                height: 200
                content: [
                        HBox {
                                content: [
                                        Circle {
                                                centerX: 100, centerY: 100
                                                radius: 40
                                                fill: Color.BLACK
                                        }
                                        
                                        
                                ]
                        }


                ]
        }
}

-----------------------------------
Comment 1 Anton Chechel 2010-03-10 09:17:19 UTC
fixed in formatter AFAIK
Comment 2 Alexandr Scherbatiy 2010-03-12 05:07:28 UTC
The issue is still reproduced in build
NetBeans-JavaFX-Soma: #182 Mar 12, 2010 12:01:00 AM
 

Steps to reproduce:

- type in the editor:
-----------------------------------
for(i in [0..3]){        
}
-----------------------------------

- Position the cursor at the end of the 'for(i in [0..3]){' line and press
Enter
There are 2 tabs before the cursor position instead of one: 
-----------------------------------
for(i in [0..3]){
        println("");  // 2 tabs indentation  
} 
-----------------------------------
Comment 3 Anton Chechel 2010-03-17 16:56:09 UTC
fixed
http://hg.netbeans.org/javafx/rev/25d1f34501fc
Comment 4 Alexandr Scherbatiy 2010-03-18 11:01:47 UTC
verified in NetBeans-JavaFX-Soma: #189