Only strip from the left.

This commit is contained in:
Teo Mrnjavac 2016-05-27 18:18:10 +02:00
parent 9450290212
commit 92d3f5fe85

View File

@ -52,11 +52,11 @@ def run():
for line in text:
if us in line and line[0] == "#":
# uncomment line
line = line[1:].strip()
line = line[1:].lstrip()
if locale in line and line[0] == "#":
# uncomment line
line = line[1:].strip()
line = line[1:].lstrip()
gen.write(line)