Hello there,
I'm testing an upgrade from xtext 2.2. to xtext 2.3. and found a problem with the org.eclipse.xtend.typesystem.xsd.XMLBeautifier which in 2.3 inserts the string '
' in every line wrap.
Debugging revealed that the org.eclipse.xtend.typesystem.xsd.XMLMixedContentFormatter now uses the system property line.separator which is \n\r instead of \n which was hard coded in version 2.2.
Is there something I can do about it? I assume I cannot change the system property.
What about setting the property explicitly (something like
-Dline.separator= or subclassing the beautifier and workflow? Btw
what is the problem with the windows line separator
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
The problem with the windows line separator is that the beautifier produces invalid xml files which cannot be parsed e.g. by spring. An example of the xml output is added below.
I don't understand why there are these extra characters. The beautifier seems to convert the \r to 
 and outputs this instead of the control character.
One would expect the beautifier to works out of the box. To me it looks broken.
Here is an example of the beautifier output with wrong characters marked red: