Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358228 - Formatter must use System setting for line separator
Summary: Formatter must use System setting for line separator
Status: CLOSED DUPLICATE of bug 347782
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 08:12 EDT by Karsten Thoms CLA
Modified: 2011-09-20 08:14 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 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 ***