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 183163 - Incorrect code-formatting of script level functions
Summary: Incorrect code-formatting of script level functions
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-03-30 09:36 UTC by David Kaspar
Modified: 2010-04-01 10:10 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 David Kaspar 2010-03-30 09:36:48 UTC
Have a file with the following code:

function run(): String {
    null
}

Invoke "Source | Format" action from main menu.
ERROR - the file gets formatted as:

function run()  : String {
    null
}

Note the two spaces after the parenthesis. The number of spaces varies based on the function name, return type content ...
Comment 1 Anton Chechel 2010-03-30 15:24:16 UTC
fixed
http://hg.netbeans.org/javafx/rev/0b5e49a2cbe9
Comment 2 Alexandr Scherbatiy 2010-04-01 10:10:38 UTC
verified in NetBeans-JavaFX-Soma: #205