pre-commit fix line ending (#7851)

This commit is contained in:
John Bampton 2023-08-11 04:14:47 +10:00 committed by GitHub
parent 7b64236469
commit 9bc0dd7a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def generate_js_file(keymap_file):
js_config.append("export default {\n")
for keycode in dict(sorted(result_mappings.items(), key=lambda item: int(item[0]))):
js_config.append("%10s : \"%s\",\n" % ("\"" + str(keycode) + "\"", result_mappings[keycode].strip()))
js_config.append("}")
js_config.append("}\n")
for line in js_config:
handle.write(line)
handle.close()

View File

@ -99,4 +99,4 @@ export default {
"125" : "43 shift",
"126" : "11 shift",
"166" : "86 shift altgr",
}
}