Replies: 1 comment 2 replies
-
|
Yes, multi-line literal strings are your friend here. As documented, everything will be preserved as is, except that the linebreak right after the opening triple quote will be stripped. If you want to remove indentation from the quoted string, you'll have to do that yourself in a postprocessing step. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a use case, coming from yaml, that is not addressed by toml.
I will use the well-known Ansible use of yaml, coming from a yaml rant:
Does it work if we use non-interpolated multi-strings like this
In TOML, I would write it like this:
Can someone confirm if I'm right or wrong ?
indents,
$and\will be kept, right ?I also have one additional question:
I know I cannot indent the closing triple-quote. If I indent the
make checkcommand, the resulting string would come with the indentation, right ?Thank you
Beta Was this translation helpful? Give feedback.
All reactions