Skip to content

Commit

Permalink
Convert tabs to spaces in game controller database entries
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 31, 2017
1 parent 347fe70 commit 8e160a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/joystick/sort_controllers.py
Expand Up @@ -29,6 +29,7 @@ def write_controllers():
global controller_guids
for entry in sorted(controllers, key=lambda entry: entry[2]):
line = "".join(entry) + "\n"
line = line.replace("\t", " ")
if not line.endswith(",\n") and not line.endswith("*/\n"):
print("Warning: '%s' is missing a comma at the end of the line" % (line))
if (entry[1] in controller_guids):
Expand Down

0 comments on commit 8e160a3

Please sign in to comment.