update explicit formatting options to force same xml rendering
This commit is contained in:
@@ -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