command/format: print correctly nested blocks with labels
This commit is contained in:
parent
b0016e9cf6
commit
3b8d46418f
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue