From 318fc79dfe958db02c09e697339e27e621b86c84 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 14 Mar 2015 11:36:10 +0100 Subject: [PATCH] Cosmetics --- radio/util/addtr.py | 2 +- radio/util/luaexport.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/util/addtr.py b/radio/util/addtr.py index d62623e88..3a3b30e52 100644 --- a/radio/util/addtr.py +++ b/radio/util/addtr.py @@ -13,7 +13,7 @@ def addLine(filename, newline, after): def modifyTranslations(constant, translation, after): for filename in glob.glob('translations/*.h.txt'): - newline = "#define " + constant + " "*(23-len(constant)) + '"' + translation + '"' + newline = "#define " + constant + " "*max(1, 23-len(constant)) + '"' + translation + '"' addLine(filename, newline, after+" ") def modifyDeclaration(constant, after): diff --git a/radio/util/luaexport.py b/radio/util/luaexport.py index 4f37ad39d..891124592 100644 --- a/radio/util/luaexport.py +++ b/radio/util/luaexport.py @@ -28,7 +28,7 @@ def checkName(name): warning = True dups_name.append(name) if name != name.lower(): - print "WARNING:Name not in lower case %s found for constant %s" % (name, CONSTANT_VALUE) + print "WARNING: Name not in lower case %s found for constant %s" % (name, CONSTANT_VALUE) warning = True