From 5902f2e37de74ec1cdfa8ac77a21124135654766 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 3 Apr 2024 01:58:39 +0200 Subject: [PATCH] Protobuf: change space indentation Use 4 space indentation instead of 1 when using the newline/space option. --- src/thirdparty/protobuf/util/json_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thirdparty/protobuf/util/json_util.cc b/src/thirdparty/protobuf/util/json_util.cc index 5ecd7321..8c71332d 100644 --- a/src/thirdparty/protobuf/util/json_util.cc +++ b/src/thirdparty/protobuf/util/json_util.cc @@ -99,7 +99,7 @@ util::Status BinaryToJsonStream(TypeResolver* resolver, converter::ProtoStreamObjectSource proto_source(&in_stream, resolver, type, render_options); io::CodedOutputStream out_stream(json_output); - converter::JsonObjectWriter json_writer(options.add_whitespace ? " " : "", + converter::JsonObjectWriter json_writer(options.add_whitespace ? " " : "", &out_stream); if (options.always_print_primitive_fields) { converter::DefaultValueObjectWriter default_value_writer(resolver, type,