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 183866 - Code formatting does not put space between '{' and attribute in object literal
Summary: Code formatting does not put space between '{' and attribute in object literal
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords: REGRESSION
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-04-12 08:12 UTC by Alexandr Scherbatiy
Modified: 2010-04-13 11:46 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 2010-04-12 08:12:24 UTC
NetBeans-JavaFX-Soma:  #217

  Product Version         = NetBeans IDE Dev (Build 201004110201) (#ca66f5e3f93f)
  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:

- Format the code
-----------------------------------------
var t = Text {    font:       Font {   size: 16   } };
-----------------------------------------

The result is:
-----------------------------------------
var t = Text {font: Font {size: 16 } };
-----------------------------------------

There are no spaces:
 {font
 {size
Comment 1 Alexandr Scherbatiy 2010-04-12 13:36:01 UTC
It was marked as P2 because it is the regression from 
the NetBeans 6.8 (and from the last week). 

The code formatting is one of the JavaFX plugin features that should be in the stable state.
Comment 2 Anton Chechel 2010-04-12 16:21:55 UTC
fixed
http://hg.netbeans.org/javafx/rev/35f04a1850be

PS: User can change behavior in menu - editor settings - formatting - java fx - spaces - spaces between braces.
Comment 3 Alexandr Scherbatiy 2010-04-13 11:46:42 UTC
verified in NetBeans-JavaFX-Soma: #219.