Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #49 from slashmo/fix/xml-dict-key
Browse files Browse the repository at this point in the history
Include XmlDict key in generated XML string
  • Loading branch information
onmyway133 authored Mar 5, 2020
2 parents 8106115 + 9b3ae7f commit 2552c28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Core/Library/Xml/Xml.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public struct XmlDict: XmlItem {

public func toLines() -> [String] {
var lines = [String]()
lines.append("<key>\(key)</key>")
lines.append("<dict>")
lines.append(contentsOf: items.flatMap({ $0.toLines() }))
lines.append("</dict>")
Expand Down

0 comments on commit 2552c28

Please sign in to comment.