From ca3a7049506cd1ba91326a36fc02a7319657728c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Jul 2021 15:26:22 -0400 Subject: Preserve long or short quoting from input documents --- src/writer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/writer.c') diff --git a/src/writer.c b/src/writer.c index c6a91d78..5416d144 100644 --- a/src/writer.c +++ b/src/writer.c @@ -737,8 +737,7 @@ write_literal(SerdWriter* const writer, } SerdStatus st = SERD_SUCCESS; - if (supports_abbrev(writer) && - (node->flags & (SERD_HAS_NEWLINE | SERD_HAS_QUOTE))) { + if (supports_abbrev(writer) && (node->flags & SERD_IS_LONG)) { TRY(st, esink("\"\"\"", 3, writer)); TRY(st, write_text(writer, WRITE_LONG_STRING, node_str, node->length)); TRY(st, esink("\"\"\"", 3, writer)); -- cgit v1.2.1