clj-yaml 2025-01-28

$ python -c 'import yaml; print(yaml.safe_dump("foo\x05bar"))'
"foo\x05bar"

$ bb '(require (quote [clj-yaml.core :as yaml])) (yaml/generate-string (pr-str "foo\u0005bar"))'
"!!binary |-\n  ImZvbwViYXIi\n"
Is there an option to not use !!binary?

Hiya @ingy, I don't see a call to setNonPrintableStyle in clj-yaml source, sooo... probably can't yet? Issue (then PR if you are up for it) welcome!

✅ 1