def fmt_lines
import cswap-bend-cli@0.1.0.0/render.bend as Renderimport Base
160def fmt_lines(ls: List<&2, Line>, +w: Nat) -> List<&2, String>:
161 match ls:
162 case Nil{}:
163 []
164 case Con{Line{l, b}, t}:
165 (padr(l ++ ":", w) ++ " " ++ b) <> fmt_lines(t, w)