Skip to content

Commit

Permalink
printer json BUGFIX indentation for "null" metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov authored and michalvasko committed Jan 29, 2024
1 parent d73f43b commit af4a5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ json_print_meta_attr_leaflist(struct jsonpr_ctx *pctx)
LEVEL_DEC;
ly_print_(pctx->out, "%s%*s}", DO_FORMAT ? "\n" : "", INDENT);
} else {
ly_print_(pctx->out, "null");
ly_print_(pctx->out, "%*snull", INDENT);
}
LEVEL_PRINTED;
if (!matching_node(iter, iter->next)) {
Expand Down

0 comments on commit af4a5db

Please sign in to comment.