~ruther/qmk_firmware

2b0965944d9065daa65cd25540cf2dd007f23eda — Ryan 1 year, 3 months ago a522b1f
`qmk format-json`: Force Unix line endings and ensure LF at EOF (#22901)

1 files changed, 2 insertions(+), 2 deletions(-)

M lib/python/qmk/cli/format/json.py
M lib/python/qmk/cli/format/json.py => lib/python/qmk/cli/format/json.py +2 -2
@@ 92,8 92,8 @@ def format_json(cli):
    output = json.dumps(json_data, cls=json_encoder, sort_keys=True)

    if cli.args.inplace:
        with open(cli.args.json_file, 'w+', encoding='utf-8') as outfile:
            outfile.write(output)
        with open(cli.args.json_file, 'w+', encoding='utf-8', newline='\n') as outfile:
            outfile.write(output + '\n')

    # Display the results if print was set
    # We don't operate in-place by default, so also display to stdout

Do not follow this link