Skip to content

Commit

Permalink
feat: add an intresting case for test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitkumar committed Dec 18, 2024
1 parent 343c379 commit b436420
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 3 deletions.
Binary file modified .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion json2xml/dicttoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def make_attrstring(attr: dict[str, Any]) -> str:
Returns:
str: The string of XML attributes.
"""
attrstring = " ".join([f'{k}="{v}"' for k, v in attr.items()])
attrstring = " ".join([f'{k}="{escape_xml(v)}"' for k, v in attr.items()])
return f'{" " if attrstring != "" else ""}{attrstring}'


Expand Down
Loading

0 comments on commit b436420

Please sign in to comment.