mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-13 13:20:46 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
b0439b43b7
@ -92,8 +92,8 @@ def format_json(cli):
|
|||||||
output = json.dumps(json_data, cls=json_encoder, sort_keys=True)
|
output = json.dumps(json_data, cls=json_encoder, sort_keys=True)
|
||||||
|
|
||||||
if cli.args.inplace:
|
if cli.args.inplace:
|
||||||
with open(cli.args.json_file, 'w+', encoding='utf-8') as outfile:
|
with open(cli.args.json_file, 'w+', encoding='utf-8', newline='\n') as outfile:
|
||||||
outfile.write(output)
|
outfile.write(output + '\n')
|
||||||
|
|
||||||
# Display the results if print was set
|
# Display the results if print was set
|
||||||
# We don't operate in-place by default, so also display to stdout
|
# We don't operate in-place by default, so also display to stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user