utils: raspberrypi: ctt: json_pretty_print: Add newline at end of output

Make sure the output ends with a newline.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Tested-by: David Plowman <david.plowman@raspberrypi.com>
This commit is contained in:
Laurent Pinchart 2020-07-03 01:43:57 +03:00
parent f128acc325
commit a83d6ac901

View file

@ -86,6 +86,7 @@ class JSONPrettyPrinter(object):
def print(self, string): def print(self, string):
for c in string: for c in string:
self.process_char(c) self.process_char(c)
self.newline()
def pretty_print_json(str_in, output_filename): def pretty_print_json(str_in, output_filename):