Bug 72069

Summary: Format removes final newline
Product: [Eclipse Project] JDT Reporter: Per Bothner <per>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Per Bothner CLA 2004-08-16 18:31:34 EDT
Create a new class, save Foo.java.  It is saved as a file with a final Newline,
as it should.

Then from the context menu run Source->Format.
The final newline is no longer in the buffer, as you can verify using arrow key
motion, or by saving the file.

Format should remove trailing whitspace, and then append a single final Newline
(or a single Return+Newline-pair on Windows).
Comment 1 Olivier Thomann CLA 2004-08-21 09:56:09 EDT

*** This bug has been marked as a duplicate of 68506 ***