use unix lineendings even on windows
This commit is contained in:
parent
543e663c68
commit
69e5e15ccc
2 changed files with 5 additions and 5 deletions
|
@ -140,7 +140,7 @@ def kle2json(cli):
|
|||
keyboard_dir.mkdir(exist_ok=True, parents=True)
|
||||
info_json_file = keyboard_dir / 'info.json'
|
||||
|
||||
json.dump(kb_info_json, info_json_file.open('w'), indent=4, separators=(', ', ': '), sort_keys=False, cls=InfoJSONEncoder)
|
||||
json.dump(kb_info_json, info_json_file.open('w', newline='\n'), indent=4, separators=(', ', ': '), sort_keys=False, cls=InfoJSONEncoder)
|
||||
cli.log.info('Wrote file {fg_cyan}%s', info_json_file)
|
||||
|
||||
# Generate and write a keymap
|
||||
|
@ -165,5 +165,5 @@ def kle2json(cli):
|
|||
}
|
||||
keymap_path.mkdir(exist_ok=True, parents=True)
|
||||
|
||||
json.dump(keymap_json, keymap_file.open('w'), indent=4, separators=(', ', ': '), sort_keys=False)
|
||||
json.dump(keymap_json, keymap_file.open('w', newline='\n'), indent=4, separators=(', ', ': '), sort_keys=False)
|
||||
cli.log.info('Wrote file %s', keymap_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue