Skip to content

Commit

Permalink
Fix XML emitter output
Browse files Browse the repository at this point in the history
Add space before closing '?>' in header

Signed-off-by: Thomas Lauf <[email protected]>
  • Loading branch information
lauft committed Aug 24, 2024
1 parent 4224e24 commit e58a540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/holidata/emitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def output(self, holidays: List[Holiday]) -> str:
export_data: List[Dict[str, Any]] = [h.as_dict() for h in holidays]
export_data.sort(key=lambda x: (x["date"], x["description"], x["region"]))

output: str = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
output: str = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
output += "<holidays>\n"

for holiday in export_data:
Expand Down

0 comments on commit e58a540

Please sign in to comment.