aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.c
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2014-09-11 12:57:51 -0700
committerRobert Griesemer <gri@golang.org>2014-09-11 12:57:51 -0700
commit724fa12f91959d083e6165079463f5502e5df835 (patch)
tree87a1607f07b66b9299d5a0c8487809ce0da74a45 /src/runtime/stack.c
parent8cc6cb2f17d7fac3cd180b60ab85beabe874b24d (diff)
downloadgo-724fa12f91959d083e6165079463f5502e5df835.tar.xz
go/printer, gofmt: don't align map entries for irregular inputs
Details: Until now, when we saw a key:value pair that fit onto a single line, we assumed that it should be formatted with a vtab after the ':' for alignment of its value. This leads to odd behavior if there are more than one such pair on a line. This CL changes the behavior such that alignment is only used for the first pair on a line. This preserves existing behavior (in the std lib we have composite literals where the last line contains multiple entries and the first entry's value is aligned with the values on previous lines), and resolves this issue. No impact on formatting of std lib, go.tools, go.exp, go.net. Fixes #8685. LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/139430043
Diffstat (limited to 'src/runtime/stack.c')
0 files changed, 0 insertions, 0 deletions