Skip to content

Commit

Permalink
Also sort mapping elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Toddelismyname committed Feb 15, 2025
1 parent 9623280 commit 2858fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def printChildren(self, element, level):
# Print the mapping element
if len(mapping_elem.items()) > 2:
self.print("{}<{}".format(self.indent * (level + 1), mapping_elem.tag))
for k, v in mapping_elem.items():
for k, v in self.sort_attributes(mapping_elem):
self.print("{}{}=\"{}\"".format(self.indent * (level + 2), k, v))

# Add basis-function child if it exists in the original
Expand Down

0 comments on commit 2858fbb

Please sign in to comment.