CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
795 stars 107 forks source link

Add prettyPrintIndentation property on XMLEncoder #186

Closed MaxDesiatov closed 4 years ago

MaxDesiatov commented 4 years ago

New property can take XMLEncoder.PrettyPrintIndentation values such as .tabs(1) or .spaces(2).

Resolve #183.

github-actions[bot] commented 4 years ago
Fails
:no_entry_sign: Error deserializing SwiftLint JSON response (): dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "The data is not in the correct format.")))

Generated by :no_entry_sign: Danger Swift against e9b2bdd1ab6db5e926902acc195e2d8e510e7402

codecov[bot] commented 4 years ago

Codecov Report

Merging #186 into master will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
+ Coverage   73.32%   73.52%   +0.19%     
==========================================
  Files          43       43              
  Lines        2332     2342      +10     
==========================================
+ Hits         1710     1722      +12     
+ Misses        622      620       -2     
Impacted Files Coverage Δ
Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift 96.36% <100.00%> (+1.03%) :arrow_up:
Sources/XMLCoder/Encoder/XMLEncoder.swift 86.01% <100.00%> (+0.40%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 388ba82...e9b2bdd. Read the comment docs.