Only strip from the left.
This commit is contained in:
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…
Reference in New Issue
Block a user