def form.one.cr
import emerging-ezhttp@0.21.0.0/src/form.bend as Formimport Base
135# a character that is not `"`: CR as %0D, else on to LF
136def form.one.cr(+cp: U32, rest: String, cr: Bool) -> String:
137 match cr:
138 case True{}:
139 "%0D" ++ rest
140 case False{}:
141 form.one.lf(cp, rest, U32.is_eq(cp, 10))