You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
txtpbfmt: Add support for formatting repeated primitive fields as lists.
When this option is used, repeated primitive fields are printed using a more conscice list syntax:
```textproto
repeated_field: 1
repeated_field: 2
repeated_field: 3
```
vs
```textproto
repeated_field: [1, 2, 3]
```
This syntax is part of the go/textformat-spec (screen/4cDavcUGvdjyWwN), thus it's supported by all parsers. Furthermore, some proto implementations (like [C++](http://google3/third_party/protobuf/text_format.h;l=407;rcl=828248838) and [Java](http://google3/third_party/java_src/protobuf/current/java/com/google/protobuf/TextFormat.java;l=385;rcl=815831657)) allow using it when printing text-proto.
This CL is a no-op if the config option isn't used.
PiperOrigin-RevId: 834277184
0 commit comments