def sp.step2
import cswap-bend-cli@0.1.0.0/fmt/yamlr.bend as Yamlrimport Base
145# A line at the block's indent opens an entry, except a `- ` line right under
146# an empty `key:` of a mapping (the sequence PyYAML writes at the key's indent).
147def sp.step2(new: Bool, +sp: Sp, +l: Ln, +t: String) -> Sp:
148 match new:
149 case True{}:
150 sp.start(sp, l, key_empty(t))
151 case False{}:
152 sp.more(sp, l)