- priority: 5 --> 8
In case of serialization of multi-line strings to xml, each line of the string always ends with ‘\n’ after serialization/deserialization.
For example, there is a string1=
'line1' + System.getProperty("line.separator") +
'line2' + System.getProperty("line.separator") +
'line3' + System.getProperty("line.separator") +
System.getProperty("line.separator")=\n\r under Windows.
After serialization/deserialization, this string ALWAYS looks like string2=
'line1\n
line2\n
line3'\n
In some cases, e.g. when it’s necessary to compare serialized/deserialized data under different OS, this kind of comparing may return ‘false’. So if would be great if there was System.getProperty("line.separator") instead of hardcoded ‘\n’.