Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
When using XStream.toXML(Object, java.io.PrintWriter), xstream (PrettyPrintWriter) uses a unix newline (\n) after each node.
Expected behaviour is to use the platform newline separator that java.io.PrintWriter also uses.
Issue Links
- relates to
-
XSTR-750 PrettyPrintWriter: no way to specify newLine in a non-deprecated constructor
This is according the XML specification. It explicitly requires parsers to drop CRs. You may use your own PrettyPrintWriter instance for marshalling, "new line" is a ctor parameter.