mirror of https://github.com/encounter/SDL.git
Convert tabs to spaces in game controller database entries
This commit is contained in:
parent
347fe70432
commit
8e160a34a7
|
@ -29,6 +29,7 @@ def write_controllers():
|
||||||
global controller_guids
|
global controller_guids
|
||||||
for entry in sorted(controllers, key=lambda entry: entry[2]):
|
for entry in sorted(controllers, key=lambda entry: entry[2]):
|
||||||
line = "".join(entry) + "\n"
|
line = "".join(entry) + "\n"
|
||||||
|
line = line.replace("\t", " ")
|
||||||
if not line.endswith(",\n") and not line.endswith("*/\n"):
|
if not line.endswith(",\n") and not line.endswith("*/\n"):
|
||||||
print("Warning: '%s' is missing a comma at the end of the line" % (line))
|
print("Warning: '%s' is missing a comma at the end of the line" % (line))
|
||||||
if (entry[1] in controller_guids):
|
if (entry[1] in controller_guids):
|
||||||
|
|
Loading…
Reference in New Issue