Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 421748 - [Code Formatter] one line ifs + wrapping misbehaves
Summary: [Code Formatter] one line ifs + wrapping misbehaves
Status: CLOSED DUPLICATE of bug 303519
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.5   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 10:32 EST by Palmer Eldritch CLA
Modified: 2015-12-26 15:54 EST (History)
1 user (show)

See Also:


Attachments
formatter export (30.45 KB, text/xml)
2013-11-14 10:32 EST, Palmer Eldritch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Palmer Eldritch CLA 2013-11-14 10:32:20 EST
Created attachment 237469 [details]
formatter export

In the code below the Build.VERSION_CODES.GINGERBREAD) ends exactly at column 80 (line begins with 2 tabs, tab size = 4)

		if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD)
			ed.apply();
		else ed.commit();

hitting Ctrl+Shift+F moves ed to line above - needlessly breaking wrapping

I attach the formatting profile
Comment 1 Mateusz Matela CLA 2015-12-26 15:54:39 EST
This problem no longer occurs after the formatter redesign.

*** This bug has been marked as a duplicate of bug 303519 ***