Skip to content

Commit

Permalink
Fix message literal column formatting for fields adjacent to multi-li…
Browse files Browse the repository at this point in the history
…ne values
  • Loading branch information
kralicky committed Feb 10, 2024
1 parent 94ad00a commit 94b7a99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/format/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ func columnFormatElements[T ast.Node, C elementsContainer[T]](f *formatter, ctr
if isMessageOrArrayLiteral {
startNewGroup()
currentGroup = append(currentGroup, e)
startNewGroup() // group this field by itself
continue
}
}
Expand Down

0 comments on commit 94b7a99

Please sign in to comment.