Community
Participate
Working Groups
In class XMLMixedContentFormatter line breaks are introduced by using "\n". Instead, the system's line seperator System.getProperty("line.separator") must be used.
Fixed
The formatter now produces character sequences like 
 on windows boxes.
The main problem was that character escaping is on by default. Therefore default save option was added. opt.put(XMLResource.OPTION_SKIP_ESCAPE, Boolean.TRUE); Note that this save option can already added by configuration to work around the issue. XMLBeautifier offers the method addSaveOption(OptionsEntry). In MWE1 you would configure it like follows: ... <postprocessor class="org.eclipse.xtend.typesystem.xsd.XMLBeautifier"> <saveOption class="org.eclipse.xtend.typesystem.xsd.OptionsEntry" key="SKIP_ESCAPE" value="true"/> </postprocessor> However, the line separation can now be influenced by XMLBeautifier#setLineSeparator(String). By default, UNIX style will be used. Other options are WINDOWS and SYSTEM. Added test case XMLBeautifierTest.
changeset: 4e95d7b066cc528acf198069a860be8935f8e8b9
Requested via bug 522520. -M.