Skip to content

Commit

Permalink
fix xml rendering of values that equal to zero (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimakan authored Aug 5, 2024
1 parent 5ae2a14 commit 39d9110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daiquiri/core/renderers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def node(self, tag, attrs, text=''):
attrs.update({'xsi:nil': 'true'})

self.xml.startElement(tag, {k: str(v) for k, v in attrs.items() if v is not None})
if text:
if text is not None:
self.xml.characters(smart_str(text))
self.xml.endElement(tag)

Expand Down

0 comments on commit 39d9110

Please sign in to comment.