Skip to content
Snippets Groups Projects
Commit 68a16864 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

Fixed removal of trailing newline upon --fix

parent a2517a15
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ RE_LICENSE = dict( ...@@ -104,7 +104,7 @@ RE_LICENSE = dict(
def load(name): def load(name):
with open(name) as f: with open(name) as f:
return '\n'.join(line.rstrip() for line in f.read().splitlines()) return f.read()
def save(name, text): def save(name, text):
with open(name, 'w') as f: with open(name, 'w') as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment