Skip to content
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

Add multiline strings #10

Open
pnathan opened this issue Nov 10, 2014 · 0 comments
Open

Add multiline strings #10

pnathan opened this issue Nov 10, 2014 · 0 comments
Labels

Comments

@pnathan
Copy link
Owner

pnathan commented Nov 10, 2014

snip from the 0.3 spec...

*Multi-line basic strings** are surrounded by three quotation marks on each
+side and allow newlines. If the first character after the opening delimiter is a
+newline (`0x0A`), then it is trimmed. All other whitespace remains intact.

+For writing long strings without introducing extraneous whitespace, end a line
+with a `\`. The `\` will be trimmed along with all whitespace (including
+newlines) up to the next non-whitespace character or closing delimiter. If the
+first two characters after the opening delimiter are a backslash and a newline
+(`0x5C0A`), then they will both be trimmed along with all whitespace (including
+newlines) up to the next non-whitespace character or closing delimiter. All of
+the escape sequences that are valid for basic strings are also valid for
+multi-line basic strings.
@pnathan pnathan added this to the TOML v0.3.0 milestone Nov 10, 2014
@pnathan pnathan changed the title Add multiline and literal strings. Add multiline strings Nov 10, 2014
@pnathan pnathan removed this from the TOML v0.3.0 milestone Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant