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 202322 - in active line, trailing white spaces aren't removed
Summary: in active line, trailing white spaces aren't removed
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 16:32 UTC by FabianBlechschmidt
Modified: 2016-07-07 07:26 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FabianBlechschmidt 2011-09-19 16:32:17 UTC
I found the issue under the posted URL. I am note sure, wether it is a bug or a feature :-)

It anoise me, so I post it:

http://netbeans.org/bugzilla/show_bug.cgi?id=157561#c19
[...]
> Note that if you have your cursor on an indented line (with only whitespace),
> the whitespace on this line won't be
> removed. Is this a bug, or is it just that users want their cursor to be in
> exactly the same place?
[...]
Comment 1 dasprid 2011-12-03 15:21:20 UTC
If it is considered a feature, there should be an option to disable it, because this can leave unwanted trailing whitespace in a file when you forget to move your cursor to POS0.
Comment 2 BullfrogBlues 2012-06-09 18:14:37 UTC
I agree there should be option to enable or disable this behaviour. 

Fair enough if this is designed behaviour (http://netbeans.org/bugzilla/show_bug.cgi?id=197469), personally I see it as a bug, but meh.
Comment 3 Martin Balin 2016-07-07 07:26:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss