From 893417d26e75f82264be7d84655e2d9989a6e558 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 27 May 2016 16:58:39 +0200 Subject: [PATCH] Strip spaces when uncommenting locales. --- src/modules/localecfg/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/localecfg/main.py b/src/modules/localecfg/main.py index eaa5e0344..f1047fb68 100644 --- a/src/modules/localecfg/main.py +++ b/src/modules/localecfg/main.py @@ -52,11 +52,11 @@ def run(): for line in text: if us in line and line[0] == "#": # uncomment line - line = line[1:] + line = line[1:].strip() if locale in line and line[0] == "#": # uncomment line - line = line[1:] + line = line[1:].strip() gen.write(line)