logextract: Make sure config files end with a newline
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b6bf455155
commit
363bcfb233
|
@ -41,7 +41,7 @@ class GatherConfig:
|
||||||
self.comments.append(comment)
|
self.comments.append(comment)
|
||||||
def write_file(self):
|
def write_file(self):
|
||||||
f = open(self.filename, 'wb')
|
f = open(self.filename, 'wb')
|
||||||
f.write('\n'.join(self.comments + self.config_lines))
|
f.write('\n'.join(self.comments + self.config_lines).strip() + '\n')
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue