Skip to content
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
bwetherfield committed Jul 16, 2019
commit fc29bd4d391e9598a46f8a9bc0c3b8b6738d05b5
2 changes: 1 addition & 1 deletion Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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