Selaa lähdekoodia

Add newlines after processinginstructions and doctypes (#5818)

Nico May 8 vuotta sitten
vanhempi
commit
29cae0271d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      std/haxe/xml/Printer.hx

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

@@ -94,8 +94,10 @@ class Printer {
 				}
 			case ProcessingInstruction:
 				write("<?" + value.nodeValue + "?>");
+				newline();
 			case DocType:
 				write("<!DOCTYPE " + value.nodeValue + ">");
+				newline();
 		}
 	}