You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. Currently naive calls to to_string_pretty yield output like:
[[foo]]
a = "a"
[foo.bar]
b = "b"
but I'd like it to output:
[[foo]]
a = "a"bar = { b = "b" }
How can I accomplish this? I spent some time experimenting with DocumentMut but was unsuccessful. set_dotted seems like it might be what I want, but in practice it didn't appear to be. Am I overlooking something obvious?
Thank you.
The text was updated successfully, but these errors were encountered:
to_string_pretty errs on the side of making Tables when what you want is an InlineTable which is the default in some circumstances. To say much more, I'd need more context.
Hi there. Currently naive calls to
to_string_pretty
yield output like:but I'd like it to output:
How can I accomplish this? I spent some time experimenting with
DocumentMut
but was unsuccessful.set_dotted
seems like it might be what I want, but in practice it didn't appear to be. Am I overlooking something obvious?Thank you.
The text was updated successfully, but these errors were encountered: