Bug 86249 - [format] Formatter should not remove indentation whitespace on empty lines
Summary: [format] Formatter should not remove indentation whitespace on empty lines
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 07:03 EST by Markus Keller CLA
Modified: 2009-08-30 02:39 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 Markus Keller CLA 2005-02-23 07:03:35 EST
I20050222-0821

Whenever I format a class like the one below, the code formatter removes the
indentation whitespace of "empty" lines. The formatter should have an option to
preserve indentation whitespace (and add it if missing). The whitespace should
indent the line as if it was not empty, but contained a valid element for that
position (like the Tab key already does in the JavaEditor).

package x;

public class Indents {
	
	private int fValue;
	
	void calculateValue() {
		fValue= 1;
		
		fValue++;
	}
	
}
Comment 1 Philipe Mulet CLA 2005-04-07 09:44:18 EDT
Deferring post 3.1
Comment 2 Eclipse Webmaster CLA 2009-08-30 02:39:01 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.