Fixed bug 4024 - remove trailing comma of Controller mappings

because it reports an error "Unexpected controller element"
This commit is contained in:
Sylvain Becker 2019-01-16 14:03:35 +01:00
parent 8a19ff3e2d
commit ede0fc4f4c
3 changed files with 562 additions and 551 deletions

View file

@ -20,7 +20,7 @@ def save_controller(line):
bindings = sorted(match.group(4).split(","))
if (bindings[0] == ""):
bindings.pop(0)
entry.extend(",".join(bindings) + ",")
entry.extend(",".join(bindings))
entry.append(match.group(5))
controllers.append(entry)