Fix triple-quoted string example in readme (#1620)

This commit is contained in:
N 2023-10-08 23:19:58 -04:00 committed by GitHub
parent 0b9a599cea
commit d17401e4b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1035,7 +1035,7 @@ $ just --evaluate
escapes := "\t\n\r\"\\"
```
Indented versions of both single- and double-quoted strings, delimited by triple single- or triple double-quotes, are supported. Indented string lines are stripped of leading whitespace common to all non-blank lines:
Indented versions of both single- and double-quoted strings, delimited by triple single- or triple double-quotes, are supported. Indented string lines are stripped of a leading line break, and leading whitespace common to all non-blank lines:
```just
# this string will evaluate to `foo\nbar\n`
@ -1044,7 +1044,7 @@ x := '''
bar
'''
# this string will evaluate to `abc\n wuv\nbar\n`
# this string will evaluate to `abc\n wuv\nxyz\n`
y := """
abc
wuv