command/format: print correctly nested blocks with labels

This commit is contained in:
Martin Atkins 2018-09-30 09:37:52 -07:00
parent b0016e9cf6
commit 3b8d46418f
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ func (p *blockBodyDiffPrinter) writeNestedBlockDiff(name string, label *string,
p.writeActionSymbol(action)
if label != nil {
fmt.Fprintf(p.buf, "%s %q {", name, label)
fmt.Fprintf(p.buf, "%s %q {", name, *label)
} else {
fmt.Fprintf(p.buf, "%s {", name)
}