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:
parent
f128acc325
commit
a83d6ac901
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ class JSONPrettyPrinter(object):
|
|||
def print(self, string):
|
||||
for c in string:
|
||||
self.process_char(c)
|
||||
self.newline()
|
||||
|
||||
|
||||
def pretty_print_json(str_in, output_filename):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue