Skip to content

Commit

Permalink
indent dump for config
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jan 19, 2021
1 parent c93701e commit 25d0942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LocationMarker.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def load(self, logger=None):
if logger is not None:
logger.info('未找到配置文件,已自动生成')
with open(self.file_path, 'w') as file:
json.dump(self.data, file)
json.dump(self.data, file, indent=2)

def __getitem__(self, key):
return self.data[key]
Expand Down

0 comments on commit 25d0942

Please sign in to comment.