diff --git a/src/Dodo.purs b/src/Dodo.purs index 5cd0179..54b7671 100644 --- a/src/Dodo.purs +++ b/src/Dodo.purs @@ -397,12 +397,12 @@ print (Printer printer) opts = flip go initState <<< pure <<< Doc { flexGroup = FlexGroupPending } FlexGroupPending | state.position.ribbonWidth > 0 -> - go (Doc doc1 : stk) state + go (Doc doc1 : Doc doc2 : stk) state { flexGroup = FlexGroupReset $ storeState stack state , buffer = Buffer.branch state.buffer } _ -> - go (Doc doc1 : stk) state + go (Doc doc1 : Doc doc2 : stk) state FlexAlt flexDoc doc1 -> case state.flexGroup of FlexGroupReset _ -> go (Doc flexDoc : stk) state