Bug 69129 - Code formatter should provide the following options
Summary: Code formatter should provide the following options
Status: RESOLVED DUPLICATE of bug 68506
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 07:36 EDT by Boris Boehlen CLA
Modified: 2004-08-20 11:59 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 Boris Boehlen CLA 2004-07-01 07:36:45 EDT
The code formatter should provide the following options 
 1) Remove trailing spaces 
 2) Add e end with a new line.  
    Rationale: Any source files and text files in general should end with a  
    newline character, especially when using SCM systems such as CVS. CVS will  
    even print a warning when it encounters a file that doesn't end with a  
    newline (see checkstyle.sf.net)
Comment 1 Boris Boehlen CLA 2004-07-01 07:37:28 EDT
Sorry 
2) should read 
 2)Add empty new line at the end of a file. 
Comment 2 Olivier Thomann CLA 2004-08-17 11:57:34 EDT
I disagree with these two options.
The first one is not an option. The code formatter must remove all trailing spaces.
I am adding the second option.
Comment 3 Olivier Thomann CLA 2004-08-18 13:27:08 EDT

*** This bug has been marked as a duplicate of 68506 ***
Comment 4 Olivier Thomann CLA 2004-08-19 10:55:06 EDT
Do you have an example where the code formatter is not removing trailing spaces.
This is not an option for a code formatter.
The code formatter has to get rid of trailing spaces. So if you find a case
where this is not done, it is a bug. But if you want an option to keep trailing
spaces, it won't be done.
Comment 5 Olivier Thomann CLA 2004-08-20 11:59:50 EDT
Closing as duplicate of bug 68506.
Please open another bug report with a test case if you find a case where the
code formatter is not removing trailing whitespaces.
Thanks.

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