commit | 3c4ab8c6f158b802a95944cb205e6360d2297d3a | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Wed Sep 11 15:31:45 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Sat Sep 14 21:08:43 2019 +0000 |
tree | 9afa5f6a21e4ea695e528161d624dbe90c57f7f5 | |
parent | 2df47c918bffd71e263058b49302bc7970bf0684 [diff] |
encoding/prototext: drop trailing newline for empty This is more consistent with the indent documentation: If indent is a non-empty string, it causes every entry in a List or Message to be preceded by the indent and trailed by a newline. Since an empty message has no entries, there should be no newlines. Change-Id: I5d57165aaf94ca6b184bb35bf05d5d68f5ee9dd5 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/194877 Reviewed-by: Herbie Ong <herbie@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.