Skip to content
Snippets Groups Projects

Refactor Test Resources

Merged Jan Loewe requested to merge refactor-resources into master
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -53,7 +53,7 @@ export class DCCDocument {
return new DCCDocument(parsed);
}
toXML(): string {
toXML(options = { spaces: 2 }): string {
/* Properties order in objects is not guaranteed in JavaScript.
* This is a workaround to fix this.
* The keys are set in the right order by creating a new instance of DCCDocument */
@@ -61,7 +61,7 @@ export class DCCDocument {
return js2xml(<Element>fixedOrderDoc, {
compact: true,
ignoreComment: true,
spaces: 2,
spaces: options.spaces,
attributesKey: "_attr",
elementNameFn: function (val, currentElementObj) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Loading