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.
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.
*** Bug 198457 has been marked as a duplicate of this bug. ***
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).