Only strip from the left.

main
Teo Mrnjavac 9 years ago
parent 9450290212
commit 92d3f5fe85

@ -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)

Loading…
Cancel
Save