Community
Participate
Working Groups
The option Clear All Blank Lines in the Code Formatter has erratic behavior when it is not checked. Sometimes it clears all blank lines, anyway. Sometimes it behaves as expected.
Is this really a Mac-specific problem?
I reported this as a Mac bug because it has never happened to me on Windows. (I use the Mac version at home, where I have a choice as to OS, and the Windows version at work.) After using the Mac version some more, I have come to the conclusion that the problem is most likely related to the line separator character. This problem has never happened to me on the Windows version and has not happened on files created from within Eclipse on the Mac version. It happens consistently on files that were created on Apple's Project Builder and then moved into Eclipse. I therefore speculate that the code formatter is not correctly identifying the line separator if it differs from the platform line separator.
This is addressed in the new formatter. Fixed and released in HEAD. Regression test added.
Verified.