You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| { items := [], .. }::gs, col, w => spaceUptoLine' gs col w
173
172
| g@{ items := i::is, .. }::gs, col, w =>
174
173
merge w
175
-
(spaceUptoLine i.f g.fld.shouldFlatten (w + col - i.indent) w)
174
+
(spaceUptoLine i.f g.fla.shouldFlatten (w + col - i.indent) w)
176
175
(spaceUptoLine' ({ g with items := is }::gs) col)
177
176
178
177
/-- A monad in which we can pretty-print `Format` objects. -/
@@ -189,11 +188,11 @@ open MonadPrettyFormat
189
188
privatedefpushGroup (flb : FlattenBehavior) (items : List WorkItem) (gs : List WorkGroup) (w : Nat) [Monad m] [MonadPrettyFormat m] : m (List WorkGroup) := do
190
189
let k ← currColumn
191
190
-- Flatten group if it + the remainder (gs) fits in the remaining space. For `fill`, measure only up to the next (ungrouped) line break.
192
-
let g := { fld := .allow (flb == FlattenBehavior.allOrNone), flb := flb, items := items : WorkGroup }
191
+
let g := { fla := .allow (flb == FlattenBehavior.allOrNone), flb := flb, items := items : WorkGroup }
193
192
let r := spaceUptoLine' [g] k (w-k)
194
193
let r' := merge (w-k) r (spaceUptoLine' gs k)
195
194
-- Prevent flattening if any item contains a hard line break, except within `fill` if it is ungrouped (=> unflattened)
0 commit comments