add customary EOF \n to written JSON

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2024-04-15 20:18:12 -05:00
parent 58f2f38546
commit b4ba27dda0
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ def write_new_config_to_filename(config: Message, filename: str, inject: bool =
else:
if filename[-5:] == '.json':
with open(filename, 'w') as file:
file.write(MessageToJson(config))
file.write(f'{MessageToJson(config)}\n')
else:
binary = storage.serialize_config_with_footer(config)
with open(filename, 'wb') as file: