diff --git a/layout/format.go b/layout/format.go index 60aff13a..d3dd4063 100644 --- a/layout/format.go +++ b/layout/format.go @@ -211,7 +211,9 @@ loop: for { switch peek(state) { case ')': - st.Layout(gtx, children...) + if state.skip == 0 { + st.Layout(gtx, children...) + } return case ',': expect(state, ",") @@ -291,7 +293,9 @@ loop: for { switch peek(state) { case ')': - fl.Layout(gtx, children...) + if state.skip == 0 { + fl.Layout(gtx, children...) + } return case ',': expect(state, ",")