def print.str
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
1907# Text goes out after the pending whitespace; its own trailing whitespace
1908# becomes pending.
1909def print.str(
1910 body: String,
1911 keep: String,
1912 blank: String,
1913 jobs: List<&2, Job>,
1914 out: List<&2, String>,
1915 pending: String,
1916 col: U32
1917) -> Print:
1918 match body:
1919 case SNil{}:
1920 Print{jobs, out, pending ++ blank, col}
1921 case _:
1922 Print{jobs, Con{keep, Con{pending, out}}, blank, col}