Procházet zdrojové kódy

Update Printer.hx

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.
Lars Doucet před 10 roky
rodič
revize
78faf6b038
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      std/haxe/xml/Printer.hx

+ 2 - 2
std/haxe/xml/Printer.hx

@@ -103,7 +103,7 @@ class Printer {
 
 
 	inline function newline() {
 	inline function newline() {
 		if (pretty) {
 		if (pretty) {
-			output.add("");
+			output.add("\n");
 		}
 		}
 	}
 	}
 
 
@@ -121,4 +121,4 @@ class Printer {
 		}
 		}
 		return false;
 		return false;
 	}
 	}
-}
+}