Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turtle/N3 does not encode final quote of a string #239

Closed
gromgull opened this issue Nov 23, 2012 · 1 comment
Closed

Turtle/N3 does not encode final quote of a string #239

gromgull opened this issue Nov 23, 2012 · 1 comment

Comments

@gromgull
Copy link
Member

In a """ quoted string, if the last character of the string is a quote it MUST be escaped.
We do not:

I.e. """hello
""""

@joernhees
Copy link
Member

You're talking about this:

In [2]: Literal("""hello
   ...: \"""")
Out[2]: rdflib.term.Literal(u'hello\n"')

In [3]: Literal("""hello
\"""").n3()
Out[3]: u'"""hello\n""""'

and want the last line to be?

u'"""hello\n\""""'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants