Community
Participate
Working Groups
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)
Sorry 2) should read 2)Add empty new line at the end of a file.
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.
*** This bug has been marked as a duplicate of 68506 ***
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.
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 ***