Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streamline_json: fix indentation in json export #280

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
streamline_json: fix indentation in json export
  • Loading branch information
bapt committed Feb 1, 2024
commit d261ca8b592487a405824006b992245fd84527a9
2 changes: 2 additions & 0 deletions src/ucl_emitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ ucl_emitter_common_start_array (struct ucl_emitter_context *ctx,
func->ucl_emitter_append_len (",\n", 2, func->ud);
}
}
ucl_add_tabs (func, ctx->indent, compact);
}

ucl_emitter_print_key (print_key, ctx, obj, compact);
Expand Down Expand Up @@ -325,6 +326,7 @@ ucl_emitter_common_start_object (struct ucl_emitter_context *ctx,
func->ucl_emitter_append_len (",\n", 2, func->ud);
}
}
ucl_add_tabs (func, ctx->indent, compact);
}

ucl_emitter_print_key (print_key, ctx, obj, compact);
Expand Down
Loading