autojson.py: add newline character before the end of file
POSIX standard defines line as something terminating with the newline
character. So the last line of a text file should also have that.
Popular editors add it automatically so to avoid unnecessary noise in
the diffs between manually edited files and something that went through
autojson.py it should add it as well.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Change-Id: I1e04b85eb41b8a7d00d506f49f994c6b40eb5fdf
diff --git a/scripts/autojson.py b/scripts/autojson.py
index 1a499df..9776196 100755
--- a/scripts/autojson.py
+++ b/scripts/autojson.py
@@ -29,3 +29,4 @@
with open(file, 'w') as f:
f.write(json.dumps(j, indent=4, sort_keys=True, separators=(',', ': ')))
+ f.write('\n')