Remove leading whitespace from files
This commit is contained in:
parent
974a67d74b
commit
06dc51b762
2
run.py
2
run.py
@ -156,7 +156,7 @@ def get_current_umask():
|
|||||||
def dryrun_safe_write(location, content):
|
def dryrun_safe_write(location, content):
|
||||||
if not args.dryrun:
|
if not args.dryrun:
|
||||||
with open(location, 'w') as file:
|
with open(location, 'w') as file:
|
||||||
file.write(content)
|
file.write(content.lstrip())
|
||||||
else:
|
else:
|
||||||
print(f'Would write to `{location}`.')
|
print(f'Would write to `{location}`.')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user