Bug 75488 - Incorrect code formatting
Summary: Incorrect code formatting
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 15:00 EDT by Randy Hudson CLA
Modified: 2004-11-02 10:25 EST (History)
0 users

See Also:


Attachments
format options (19.02 KB, text/plain)
2004-10-04 15:19 EDT, Randy Hudson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2004-10-01 15:00:44 EDT
Invoking "Format" resulted in:
if (TextRequest.REQ_INSERT == request.getType()
		|| TextRequest.REQ_BACKSPACE == request.getType()
		|| TextRequest.REQ_DELETE == request.getType()
		|| TextRequest.REQ_REMOVE_RANGE == request.getType())
		return getHost();

The return statement should not be double-indented.
Using 3.0.1.
Comment 1 Olivier Thomann CLA 2004-10-04 14:09:59 EDT
Could you please provide your formatting preferences?
Thanks.
Comment 2 Randy Hudson CLA 2004-10-04 15:19:47 EDT
Created attachment 14985 [details]
format options
Comment 3 Olivier Thomann CLA 2004-10-05 19:05:39 EDT
Fixed and released in HEAD.
Regression test added.
Comment 4 David Audel CLA 2004-11-02 10:25:33 EST
Verified for 3.1M3 with build I20041101.