-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOML.print
generates invalid TOML on stdout when the values include multiline strings
#55083
Labels
kind:bug
Indicates an unexpected problem or unintended behavior
stdlib:TOML
stdlib
Julia's standard library
Comments
palday
changed the title
Jul 8, 2024
TOML.print
generates invalid TOML when the values include multiline stringsTOML.print
generates invalid TOML on stdout when the values include multiline strings
ararslan
added
kind:bug
Indicates an unexpected problem or unintended behavior
stdlib
Julia's standard library
stdlib:TOML
and removed
kind:bug
Indicates an unexpected problem or unintended behavior
labels
Jul 8, 2024
julia/stdlib/TOML/src/print.jl Lines 104 to 106 in 594544d
Looks like there's no handling of newlines |
ararslan
added
the
kind:bug
Indicates an unexpected problem or unintended behavior
label
Jul 8, 2024
KristofferC
pushed a commit
that referenced
this issue
Jul 12, 2024
KristofferC
pushed a commit
that referenced
this issue
Jul 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind:bug
Indicates an unexpected problem or unintended behavior
stdlib:TOML
stdlib
Julia's standard library
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: