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 197469

Summary: Remove trailing whitespace doesn't work with current line
Product: editor Reporter: just2b
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal CC: mmirilovic, tuebernickel
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description just2b 2011-04-06 05:18:28 UTC
If the option "Remove trailing whitespace" is set to "always" and a whitespace is in the currentline and I press save, every whitespace is removed except the one from the current line.
Comment 1 Dusan Balek 2011-05-13 10:29:41 UTC
*** Bug 198457 has been marked as a duplicate of this bug. ***
Comment 2 Dusan Balek 2011-11-01 14:31:10 UTC
This is as designed behavior - whitespace on the line containing caret gets removed only if it is behind the caret (see issue #13063 for more details).