remove indent in generated json file

This commit is contained in:
syt 2023-11-30 21:44:58 +08:00 committed by GitHub
parent 7e0e26aa17
commit d4e6fefc36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,7 @@ def parse_addon_infos(input_dir, output_filepath, **kwargs):
if dir and not os.path.exists(dir):
os.makedirs(dir)
with open(output_filepath, "w") as json_file:
json.dump(addon_infos, json_file, ensure_ascii=False, indent=' ')
json.dump(addon_infos, json_file, ensure_ascii=False)
return addon_infos