Bug 36108 - Code Formatter Clear Blank Lines Doesn't Work
Summary: Code Formatter Clear Blank Lines Doesn't Work
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-06 01:54 EST by Robert Gardner CLA
Modified: 2003-10-14 07:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Gardner CLA 2003-04-06 01:54:47 EST
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.
Comment 1 Andre Weinand CLA 2003-04-08 05:38:41 EDT
Is this really a Mac-specific problem?
Comment 2 Robert Gardner CLA 2003-04-09 10:54:45 EDT
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.
Comment 3 Olivier Thomann CLA 2003-10-03 10:23:01 EDT
This is addressed in the new formatter.
Fixed and released in HEAD.
Regression test added.
Comment 4 David Audel CLA 2003-10-14 07:17:34 EDT
Verified.