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 255984 - Remove trailing whitespaces do not work for newlines or space added at end of line
Summary: Remove trailing whitespaces do not work for newlines or space added at end of...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2015-10-17 11:58 UTC by lvaills
Modified: 2015-10-19 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (165.98 KB, text/plain)
2015-10-17 11:58 UTC, lvaills

Note You need to log in before you can comment on or make changes to this bug.
Description lvaills 2015-10-17 11:58:13 UTC
Product Version = NetBeans IDE 8.1 RC2 (Build 201510122201)
Operating System = Linux version 3.16.0-44-generic running on i386
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) Client VM 25.45-b02

Reproducibility: Happens every time

  * Configure Netbeans to "Remove trailing whitespaces on modified lines only" for all languages and is not overriden for Java
  * Open a Java file
  * Go on a line : at the end add some spaces
  * Save the file

The trailing spaces are not removed.

The trailing spaces to be removed.

It also happens when I want to add a new line : I go at the end of a line, hit "Enter" then save : the new line is not empty : it contains the spaces needed for indentation.
Comment 1 lvaills 2015-10-17 11:58:18 UTC
Created attachment 156767 [details]
IDE log
Comment 2 Jiri Kovalsky 2015-10-19 08:45:35 UTC
Reassigned for further evaluation.