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 198457

Summary: remove trailing spaces ignores current line
Product: editor Reporter: tuebernickel
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description tuebernickel 2011-05-09 14:27:23 UTC
Situation:
* Setting "Remove Trailing Whitespace" set to "Always"
* Cursor on the end of line
* Trailing whitespace before cursor

Reproduction:
* Issue save command on given situation
* Whitespace before cursor won't be removed

Expectation:
* Cursor will be set to the end of line without trailing whitespace
* Trailing whitespace will be removed prior actually saving the file

Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Mac OS X version 10.6.7 running on x86_64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334
Comment 1 Dusan Balek 2011-05-13 10:29:41 UTC
Already reported. Thanks.

*** This bug has been marked as a duplicate of bug 197469 ***