Bug 72069 - Format removes final newline
Summary: Format removes final newline
Status: RESOLVED DUPLICATE of bug 68506
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 18:31 EDT by Per Bothner CLA
Modified: 2004-08-21 09:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***