Browse Source

Add newlines after processinginstructions and doctypes (#5818)

Nico May 8 years ago
parent
commit
29cae0271d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/haxe/xml/Printer.hx

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

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