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

Summary: Remove trailing whitespaces do not work for newlines or space added at end of line
Product: editor Reporter: lvaills
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

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

STEPS:
  * 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

ACTUAL:
The trailing spaces are not removed.

EXPECTED:
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.