| Summary: | Formatter must use System setting for line separator | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Karsten Thoms <karsten.thoms> |
| Component: | Xtext | Assignee: | 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: | |||
*** This bug has been marked as a duplicate of bug 347782 *** |
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.