update explicit formatting options to force same xml rendering
This commit is contained in:
1 parent
7550e78331
commit
c0f590e0c9
1 file changed
+6
@@ -63,6 +63,12 @@ function prettifyXml(xmlString, indent = 2) {
|
|||||||
collapseContent: false,
|
collapseContent: false,
|
||||||
lineSeparator: '\n',
|
lineSeparator: '\n',
|
||||||
filter: () => true, // Keep all whitespace nodes
|
filter: () => true, // Keep all whitespace nodes
|
||||||
|
attributeQuotes: 'double',
|
||||||
|
forceSelfClosingEmptyTag: true,
|
||||||
|
ignoredPaths: [], // Do not ignore any paths
|
||||||
|
strictMode: false,
|
||||||
|
throwOnFailure: false,
|
||||||
|
whiteSpaceAtEndOfSelfclosingTag: false,
|
||||||
});
|
});
|
||||||
return formatted;
|
return formatted;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user