Skip to content

wezterm.serde.toml_encode_pretty(value)

Since: Nightly Builds Only

The functionality described in this section requires a nightly build of wezterm. You can obtain a nightly build by following the instructions from the Download section.

Encodes the supplied lua value as a pretty-printed string of toml:

> wezterm.serde.toml_encode_pretty({foo = { "bar", "baz", "qux" } })
"foo = [\n    \"bar\",\n    \"baz\",\n    \"qux\",\n]\n"