From 7a080bea8beeb7757c60a56087df4b24621082c9 Mon Sep 17 00:00:00 2001 From: N <47500890+avi-cenna@users.noreply.github.com> Date: Thu, 15 Jun 2023 17:34:53 -0400 Subject: [PATCH 1/2] Update README.md Correct small typo in "String" example, and provide additional clarification of how multi-line strings are stripped. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6030655faa..1651570eb4 100644 --- a/README.md +++ b/README.md @@ -1029,7 +1029,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 leading whitespace common to all non-blank lines. Note that while the leading line break is stripped, the trailing line break is still included: ```just # this string will evaluate to `foo\nbar\n` @@ -1038,7 +1038,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 From e007a87179c6e9770e4012c9f1250949eb31f8f8 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 8 Oct 2023 20:17:29 -0700 Subject: [PATCH 2/2] Reword --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1651570eb4..0941c5ca1f 100644 --- a/README.md +++ b/README.md @@ -1029,7 +1029,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. Note that while the leading line break is stripped, the trailing line break is still included: +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`