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 187706 - Code formatting adds extra empty lines to class
Summary: Code formatting adds extra empty lines to class
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-06-17 08:36 UTC by Alexandr Scherbatiy
Modified: 2010-06-18 09:35 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-06-17 08:36:32 UTC
Product Version         = NetBeans IDE Dev (Build 201006170001) (#6737ed3cbceb)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01; Sun Microsystems Inc.


Steps to reproduce:

Create Foo JavaFX class:
----------  Foo.fx --------------------
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javafxapplication7;

class Foo {
    function bar(): Void {
        println("baz");
    }
}

---------------------------------------

The result is:
---------------------------------------
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javafxapplication7;

class Foo {

    

    function bar(): Void {
        println("baz");
    }

}
---------------------------------------
Comment 1 Anton Chechel 2010-06-17 13:16:59 UTC
I am getting:

---------------------------------------
class Foo {

    function bar(): Void {
        println("baz");
    }

}
---------------------------------------

which is correct.
Comment 2 Alexandr Scherbatiy 2010-06-18 09:35:11 UTC
very strange. now it is not reproduced.