Skip to content

Commit

Permalink
Fix indentation (CoreOffice#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwetherfield committed Jul 26, 2019
1 parent 38ddde7 commit 3d0b091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct XMLCoderElement: Equatable {
let nonEmptyKey = element.key != ""
let level = nonEmptyKey ? level + 1 : level
string += element._toXMLString(
indented: level + 1, withCDATA: cdata, formatting: formatting
indented: level, withCDATA: cdata, formatting: formatting
)
string += (prettyPrinted && nonEmptyKey) ? "\n" : ""
return string
Expand Down

0 comments on commit 3d0b091

Please sign in to comment.