From 1460a4b83fb70b728906a24f49da4f1745a10776 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Nov 2012 15:52:51 +0000 Subject: Fix bug that caused "a" abbreviation in non-predicate position (#862). git-svn-id: http://svn.drobilla.net/serd/trunk@399 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/writer.c') diff --git a/src/writer.c b/src/writer.c index 86fe482a..c6f010c0 100644 --- a/src/writer.c +++ b/src/writer.c @@ -408,7 +408,7 @@ write_node(SerdWriter* writer, break; case SERD_URI: has_scheme = serd_uri_string_has_scheme(node->buf); - if ((writer->syntax == SERD_TURTLE) + if (field == FIELD_PREDICATE && (writer->syntax == SERD_TURTLE) && !strcmp((const char*)node->buf, NS_RDF "type")) { sink("a", 1, writer); break; -- cgit v1.2.1