Trailing white-space in text blocks
John Rose
john.r.rose at oracle.com
Wed May 22 19:31:09 UTC 2019
On May 21, 2019, at 2:17 AM, James Laskey <james.laskey at oracle.com> wrote:
>
> If we go with \<LineTerminator> for line continuation, and
>
> """
> First \
> Second \
> Third
> """;
>
> represents the string "First<Space>Second<Space>Third", then
>
> """
> First \n\
> Second \n\
> Third
> """;
>
Yes! FTR I would prefer that we get both <\ LT> and <\ s>,
as a way to manage the new issues involving incidental
white space in text blocks. I'm greedy.
Having <\ n \ LT> as a visible line end is a nice thing,
and reduces pressure for <\ s> as a workaround for
invisible space at line ends. But that's not the only
use case for <\ s>.
To be clear, <\ s> (and less so <\ 0 4 0>) is also useful
for visibly marking non-incidental space at the beginning
of a line, as well as at the end of lines.
— John
More information about the amber-spec-experts
mailing list