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
I'm guessing this intersection of two different expectations -- we generally don't include triple quotes for show-type methods going to stdout, but in this particular case, it prevents a simple copy-paste of the generated TOML into other use cases.
julia>versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-0410:41 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU:8× Apple M1
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads:4 default, 0 interactive, 2 GC (on 4 virtual cores)
The text was updated successfully, but these errors were encountered:
palday
changed the title
TOML.print generates invalid TOML when the values include multiline stringsTOML.print generates invalid TOML on stdout when the values include multiline strings
Jul 8, 2024
ararslan
added
bug
Indicates an unexpected problem or unintended behavior
stdlib
Julia's standard library
TOML
and removed
bug
Indicates an unexpected problem or unintended behavior
labels
Jul 8, 2024
Interestingly, this seems to only be an issue with
stdout
and is handled correctly with other IO streamsI'm guessing this intersection of two different expectations -- we generally don't include triple quotes for
show
-type methods going tostdout
, but in this particular case, it prevents a simple copy-paste of the generated TOML into other use cases.The text was updated successfully, but these errors were encountered: