Small cleanup

This commit is contained in:
NeeEoo
2024-04-05 20:25:10 +02:00
parent 9da3a25b5c
commit 7b279bfed0
8 changed files with 14 additions and 13 deletions
+3 -1
View File
@@ -285,10 +285,12 @@ class XMLUtil {
}
/**
* Trims and removes spacing from the nodeValue in the XML
*
* WARNING: will edit directly the node!
*/
public static function fixSpacingInNode(node:Access):Access {
var arr = [for(x in node.x) x];
var arr = Lambda.array(node.x);
for(i => n in arr) {
if(n.nodeType == PCData) {
if(i == 0) n.nodeValue = n.nodeValue.ltrim();