From 8e160a34a7afa5aaf5703d3bb25e547c3acdb107 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 30 Aug 2017 23:02:39 -0700 Subject: [PATCH] Convert tabs to spaces in game controller database entries --- src/joystick/sort_controllers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/joystick/sort_controllers.py b/src/joystick/sort_controllers.py index af95d65134..47213c220d 100755 --- a/src/joystick/sort_controllers.py +++ b/src/joystick/sort_controllers.py @@ -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):