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 253840

Summary: Formatter does not remove all new lines
Product: editor Reporter: stwr
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: All checkboxes on - formatter inserts all new lines correctly
All checkboxes off - formatter forgets about one new line

Description stwr 2015-07-27 08:22:19 UTC
Created attachment 154932 [details]
All checkboxes on - formatter inserts all new lines correctly

Product Version: NetBeans IDE 8.1 Beta (Build 201507231027)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\cendrowiczm\AppData\Roaming\NetBeans\8.1beta
Cache directory: C:\Users\cendrowiczm\AppData\Local\NetBeans\Cache\8.1beta

Test Case --> http://services.netbeans.org/synergy/client/app/#/case/2194/suite/1695/v/1

Formatter inserts all new lines correctly. When all checkboxes are deselected the formatter does not remove one new line previously entered for public void method.
Comment 1 stwr 2015-07-27 08:22:51 UTC
Created attachment 154933 [details]
All checkboxes off - formatter forgets about one new line
Comment 2 Dusan Balek 2015-07-29 07:37:59 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/8f587aa7508d
Comment 3 Quality Engineering 2015-07-30 01:23:53 UTC
Integrated into 'main-silver', will be available in build *201507300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8f587aa7508d
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #253840 - Formatter does not remove all new lines - fixed.