Closed
Description
When constructing a KdlEntry with a string value (regardless of whether or not that string contains a new-line), it is unclear to me as the caller how to tell the entry's format to use a single line vs a multi-line string (when that entry is turned into a string itself).
kdl::KdlEntry::new("Some\nmulti-line\nstring".to_owned()).to_string()
I'm hoping I've just missed something in my doc reading and experimenting, but it seems like KdlEntry::ensure_v2
is only checking KdlEntryFormat::value_repr
, which has no user-accessible api for forcing the representation to some form.
Metadata
Metadata
Assignees
Labels
No labels