Update dict_to_xml helper function

This commit is contained in:
JonnyWong16
2020-10-04 01:35:11 -07:00
parent e3214946a3
commit 842a76aae1
2 changed files with 9 additions and 8 deletions

View File

@@ -1640,7 +1640,7 @@ class Export(object):
outfile.write(json_data)
elif self.file_format == 'xml':
xml_data = helpers.dict_to_xml({self.media_type: result}, root_node='export')
xml_data = helpers.dict_to_xml({self.media_type: result}, root_node='export', indent=4)
with open(filepath, 'w', encoding='utf-8') as outfile:
outfile.write(xml_data)