Skip to content

Commit

Permalink
fix: use tabs instead of spaces for indentation
Browse files Browse the repository at this point in the history
I like spaces better, but this way, XML output matches MDTO's output
byte-for-byte.
  • Loading branch information
rien333 committed Dec 5, 2024
1 parent d11ce14 commit 97932c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdto/mdto.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def to_xml(self) -> ET.ElementTree:
# can you abstract this? this is now double
# on the other hand, formatting preferences should be handled by e.g. xmllint
tree = ET.ElementTree(mdto)
ET.indent(tree, space=" ") # use 4 spaces as indentation
ET.indent(tree, space="\t") # use tabs as indentation (this matches what MDTO does)

return tree

Expand Down Expand Up @@ -829,7 +829,7 @@ def to_xml(self) -> ET.ElementTree:
root.append(self.isRepresentatieVan.to_xml("isRepresentatieVan"))

tree = ET.ElementTree(mdto)
ET.indent(tree, space=" ") # use 4 spaces as indentation
ET.indent(tree, space="\t") # use tabs as indentation (this matches what MDTO does)

return tree

Expand Down

0 comments on commit 97932c5

Please sign in to comment.