update explicit formatting options to force same xml rendering

This commit is contained in:
2026-06-24 09:49:40 +02:00
parent 7550e78331
commit c0f590e0c9
+6
View File
@@ -63,6 +63,12 @@ function prettifyXml(xmlString, indent = 2) {
collapseContent: false,
lineSeparator: '\n',
filter: () => true, // Keep all whitespace nodes
attributeQuotes: 'double',
forceSelfClosingEmptyTag: true,
ignoredPaths: [], // Do not ignore any paths
strictMode: false,
throwOnFailure: false,
whiteSpaceAtEndOfSelfclosingTag: false,
});
return formatted;
} catch (error) {