The newline() function in xml printer wasn't actually adding any newlines. Without this, Printer.print(someXml,true) inserts tabs, but not newlines. This makes the output correct.
@@ -103,7 +103,7 @@ class Printer {
inline function newline() {
if (pretty) {
- output.add("");
+ output.add("\n");
}
@@ -121,4 +121,4 @@ class Printer {
return false;
-}
+}