From 5e4538756d601e6a941c5290777af95ea8848e1a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Jul 2021 15:26:22 -0400 Subject: [WIP] Preserve long or short quoting from input documents --- src/read_turtle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/read_turtle.c') diff --git a/src/read_turtle.c b/src/read_turtle.c index c3970a1e..22269741 100644 --- a/src/read_turtle.c +++ b/src/read_turtle.c @@ -115,7 +115,6 @@ read_STRING_LITERAL_LONG(SerdReader* const reader, push_byte(reader, ref, c); st = read_string_escape(reader, ref); } else { - ref->flags |= SERD_HAS_QUOTE; if (!(st = push_byte(reader, ref, c))) { st = read_character(reader, ref, (uint8_t)q2); } @@ -151,7 +150,10 @@ read_String(SerdReader* const reader, SerdNode* const node) return SERD_SUCCESS; } + // Long string skip_byte(reader, q3); + node->flags |= SERD_IS_LONG; + return read_STRING_LITERAL_LONG(reader, node, (uint8_t)q1); } -- cgit v1.2.1