1
0
mirror of https://github.com/golang/go synced 2024-11-07 14:56:16 -07:00
go/src
Robert Griesemer c882f4b6b1 go/printer: consider empty lines in table layout computation
In previous versions of Go including 1.10, an empty line would break the
alignment of elements within an expression list.

golang.org/cl/104755 changed the heuristic, with the side effect that
empty lines no longer broke the table alignment.

A prior fix (https://go-review.googlesource.com/c/go/+/125260, reverted)
introduced another regression (#26930) which this change doesn't produce.

Added test cases for both #26352 and #26930.

Fixes #26352.
Updates #26930.

Change-Id: I371f48e6f3620ebbab53f2128ec5e58bcd4a62f1
Reviewed-on: https://go-review.googlesource.com/129256
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Alan Donovan <adonovan@google.com>
2018-08-14 20:40:15 +00:00
..
archive
bufio
builtin
bytes
cmd cmd/compile/internal/gc: add nil check for closure call on wasm 2018-08-14 09:19:38 +00:00
compress
container
context
crypto crypto/ecdsa: add a package level example 2018-08-02 22:14:25 +00:00
database/sql database/sql: fix driverStmt.Close() comment typo 2018-08-03 03:58:03 +00:00
debug
encoding encoding/xml: document HTMLAutoClose and HTMLEntity more 2018-08-02 20:47:47 +00:00
errors
expvar
flag
fmt strconv: clarify "g" and "G" precision in the docs 2018-08-01 00:57:00 +00:00
go go/printer: consider empty lines in table layout computation 2018-08-14 20:40:15 +00:00
hash
html html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
image
index/suffixarray
internal
io
log
math math/rand: improve package documentation 2018-08-03 23:08:42 +00:00
mime
net net/http: support configuring fetch options 2018-08-13 19:04:16 +00:00
os os: document that Remove removes only empty directories 2018-08-03 23:09:31 +00:00
path path: present the correct error message in TestMatch 2018-07-29 19:18:48 +00:00
plugin
reflect
regexp
runtime runtime: go fmt runtime2.go 2018-08-14 16:32:55 +00:00
sort
strconv strconv: clarify "g" and "G" precision in the docs 2018-08-01 00:57:00 +00:00
strings
sync
syscall syscall/js: extend ValueOf to support arrays and objects 2018-08-07 10:56:56 +00:00
testing
text
time
unicode
unsafe
vendor/golang_org/x vendor: update golang.org/x/net/http2/hpack 2018-08-01 20:05:31 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
make.bat cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
Make.dist
make.rc cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
run.bat cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
run.rc cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00