Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dcc-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
Development
dcc-js
Merge requests
!10
Refactor Test Resources
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor Test Resources
refactor-resources
into
master
Overview
0
Commits
61
Pipelines
6
Changes
2
Merged
Jan Loewe
requested to merge
refactor-resources
into
master
2 years ago
Overview
0
Commits
61
Pipelines
6
Changes
2
Expand
0
0
Merge request reports
Viewing commit
94d11d5b
Prev
Next
Show latest version
2 files
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
94d11d5b
test(example): fix usage of example.xml
· 94d11d5b
Jan Loewe
authored
2 years ago
src/DCCDocument.ts
+
2
−
2
Options
@@ -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