Derived from a suggestion in merge request Feature : Allow setting custom linefeed on DefaultXmlPrettyPrinter #568
Found some tests that include hard-coded system-default-newlines "\n" when the value should actually be read from System.getProperty("line.separator");
"\n"
when the value should actually be read fromSystem.getProperty("line.separator");