[Commits] SDL: Convert tabs to spaces in game controller database entries

libsdl.org revision control commits-owner at libsdl.org
Wed Aug 30 23:02:15 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/884105e0943f
changeset: 11430:884105e0943f
user:      Sam Lantinga <slouken at libsdl.org>
date:      Wed Aug 30 23:02:39 2017 -0700
description:
Convert tabs to spaces in game controller database entries

diffstat:

 src/joystick/sort_controllers.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 424d7476f72d -r 884105e0943f src/joystick/sort_controllers.py
--- a/src/joystick/sort_controllers.py	Wed Aug 30 14:25:01 2017 -0700
+++ b/src/joystick/sort_controllers.py	Wed Aug 30 23:02:39 2017 -0700
@@ -29,6 +29,7 @@
     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):


More information about the commits mailing list