aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/logextract.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-10-24 09:43:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-10-24 16:02:03 -0400
commit363bcfb2330ad965dc70c0983049f621ae3b0e14 (patch)
tree68f6c5c33a60f0742c716e0525ee823466436988 /scripts/logextract.py
parentb6bf4551551e5a20cf420a1d3c5049d601d941c3 (diff)
downloadkutter-363bcfb2330ad965dc70c0983049f621ae3b0e14.tar.gz
kutter-363bcfb2330ad965dc70c0983049f621ae3b0e14.tar.xz
kutter-363bcfb2330ad965dc70c0983049f621ae3b0e14.zip
logextract: Make sure config files end with a newline
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/logextract.py')
-rwxr-xr-xscripts/logextract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/logextract.py b/scripts/logextract.py
index 5ac52915..1151e05f 100755
--- a/scripts/logextract.py
+++ b/scripts/logextract.py
@@ -41,7 +41,7 @@ class GatherConfig:
self.comments.append(comment)
def write_file(self):
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()