Bug 5691 - Java Formatter -- Indentation w/ space broken
Summary: Java Formatter -- Indentation w/ space broken
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-08 17:26 EST by Howard M. Lewis Ship CLA
Modified: 2003-10-03 09:12 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 Howard M. Lewis Ship CLA 2001-11-08 17:26:40 EST
If you indent with spaces, not tabs (with a spacing of four), and also 
have "Insert new line before brace" checked, then the open brace is idented one 
extra character.

Switching to tabs lines up the brace properly (it is back in the same column as 
its closing brace).
Comment 1 Patrick Smith CLA 2001-11-30 16:10:16 EST
[using Eclipse 20011107]

I am finding the same problem but with lines following a comment:

[Indentation represented by tab]:
// Some comment
int someVar;

[Indentation represented by space]:
// Some comment
 int someVar;
Comment 2 Philipe Mulet CLA 2002-02-02 07:28:14 EST
Formatter issues are deferred post 2.0
Comment 3 Philipe Mulet CLA 2002-07-25 06:30:57 EDT
Resurrecting formatter issues in 2.1 stream.
Comment 4 Philipe Mulet CLA 2002-07-25 06:32:45 EDT
Clearing resolution
Comment 5 Olivier Thomann CLA 2003-01-15 13:22:52 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 6 Philipe Mulet CLA 2003-06-12 06:36:06 EDT
Resurrecting for 3.0
Comment 7 Olivier Thomann CLA 2003-06-12 15:58:58 EDT
Reopen for 3.0 consideration.
Comment 8 Olivier Thomann CLA 2003-10-03 09:12:36 EDT
Could not reproduce with the new formatter.
Closed.