Bug 16517

Summary: Format selection loses ending line separator
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2002-05-20 23:03:44 EDT
Build 20020519

public class Test {
	public static void main(String[] args) {
		System.out.println("Hi");
	}
}

Select the whole System.out... line, including the line delimeter, but not 
the } brace.
Choose Format.
The } brace goes up to join it.
If the selection does not include the line delimeter, it works fine.
Comment 1 Nick Edgar CLA 2002-05-20 23:04:12 EDT
I had this happen in a bunch of real cases, not just the toy case above.
Comment 2 Olivier Thomann CLA 2002-05-21 09:49:17 EDT

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