w3c / rdf-turtle

https://w3c.github.io/rdf-turtle/
Other
4 stars 4 forks source link

Escape character text #5

Closed afs closed 1 year ago

afs commented 1 year ago

The doc says:

""" Literals delimited by ' (U+0027), may not contain the characters ', LF (U+000A), or CR (U+000D). Literals delimited by ", may not contain the characters ", LF, or CR. Literals delimited by ''' may not contain the sequence of characters '''. Literals delimited by """ may not contain the sequence of characters """. """

It should say

""" Literals delimited by ' (U+0027), may not contain an unescaped ' character, ... """

or

""" Literals delimited by ' (U+0027) must use an escape sequence to include the ' character, """

Similarly for "-strings and for triple quoted strings (\''' is possible).

gkellogg commented 1 year ago

Presumably keeping the restriction on LF and CR in each.

afs commented 1 year ago

Yes - it's the ... above.

gkellogg commented 1 year ago

This was addressed in https://github.com/w3c/rdf-turtle/commit/4024306806575ea9b6116053e787eeafebde160d and can probably be closed.