Skip to content

Commit b7b0086

Browse files
djmgitmariobehling
authored andcommitted
fixes #325 - fixed trailing spaces problem (#326)
Fixes issue #325, app.json created by loklakinit no more contains trailing spaces and has eof line.
1 parent bfee69c commit b7b0086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/loklakinit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def sigint_handler(signum, frame):
227227
index_html.close()
228228

229229
app_json_file = open("app.json", 'w')
230-
app_json_file.write(json.dumps(app_json, indent=2))
230+
app_json_file.write('{}\n'.format(json.dumps(app_json, indent=2, separators=(',', ': '))))
231231
app_json_file.close()
232232

233233
get_started_md = open("getStarted.md", 'w')

0 commit comments

Comments
 (0)