Re: \n in Turtle

* Victor Porton <porton@narod.ru> [2017-11-19 03:20+0200]
> I want \n (new line) in a Turtle literal.
> 
> How?

The \n escape character is available in STRING_LITERAL
'one\nnewline'
and STRING_LITERAL_LONG.
'''one\nnewline'''
With STRING_LITEAL_LONG, you can also just stick it inline.
'''one
newline'''
You can use UCHAR which is either \u four digits
'one\u000Anewline'
or \U eight digits.
'one\U0000000Anewline'

These all work with double quotes as well, e.g.
"one\nnewline"
"""one
newline"""
"""one\u000Anewline"""

http://tinyurl.com/y82ujvol illustrates these.

-- 
-ericP

office: +1.617.599.3509
mobile: +33.6.80.80.35.59

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

There are subtle nuances encoded in font variation and clever layout
which can only be seen by printing this message on high-clay paper.

Received on Sunday, 19 November 2017 02:38:04 UTC