Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358228

Summary: Formatter must use System setting for line separator
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-09-20 08:12:27 EDT
In method FormatterConfigBasedStream$Line#wrap() creation of newlines is created hard-coded with "\n".

On Windows systems it is usually desired to format in Windows style, i.e. \r\n.

Therefore as newline seperator System.getProperty("line.separator") must be used for formatting.

Ideally this seperator String is injected, since in the UI one could configure the newline seperator as Workspace or Project specific property, and then this configured value should be taken.
Comment 1 Sebastian Zarnekow CLA 2011-09-20 08:14:25 EDT

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