def clean
import ezx@1.11.0.0/src/ledger/render.bend as Renderimport Base
156# whether a name or value can be written as it is: it holds no `"`, no `\`
157# and no newline. The pinned eztoml reader (v0.1.0) neither writes nor reads
158# escapes, a newline would end the line, and a quote or a backslash would make
159# the file mean something else to every other TOML reader, nix's among them.
160def clean(+text: String) -> Bool:
161 Bool.and(clear(text, '"'), Bool.and(clear(text, '\\'), clear(text, '\n')))