diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-03 01:43:57 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-03 18:15:47 +0300 |
commit | d9617a499a174cdf7f56acafc2e7eec24be478c2 (patch) | |
tree | 4e18303374fa233a6cfaa02519234384ecc80713 /src/ipa/raspberrypi/cam_helper.hpp | |
parent | 606741deb999598175bf8dcb5515f78b15bb3888 (diff) |
utils: raspberrypi: ctt: json_pretty_print: Fix indentation handling
Indentation is handled by outputting spaces right after outputting a
newline character. That works in most cases, but would result in the
input '{}' being printed as
{
}
instead of
{
}
Fix it by outputting the indentation before outputting the next
character after a newline. The indentation value will be updated by
then.
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>
Diffstat (limited to 'src/ipa/raspberrypi/cam_helper.hpp')
0 files changed, 0 insertions, 0 deletions