Fix: JSON renderer for EOF format

This commit is contained in:
Donghyun Kim
2022-05-15 00:17:46 +09:00
parent 21e81c2650
commit ba4a7d9262
+1 -1
View File
@@ -345,7 +345,7 @@ class JsonRenderer(CLIRenderer):
def output_result(self, outfd, result):
"""Outputs the JSON data to a file in a particular format"""
outfd.write(json.dumps(result, indent = 2, sort_keys = True))
outfd.write("{}\n".format(json.dumps(result, indent = 2, sort_keys = True)))
def render(self, grid: interfaces.renderers.TreeGrid):
outfd = sys.stdout