aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-11-14 15:52:51 +0000
committerDavid Robillard <d@drobilla.net>2012-11-14 15:52:51 +0000
commit1460a4b83fb70b728906a24f49da4f1745a10776 (patch)
treea49bdf7de805177719fd17a9113efd83f0ab2999 /src
parent648e940950c321fda75e20d410b3bfdb2c1baee4 (diff)
downloadserd-1460a4b83fb70b728906a24f49da4f1745a10776.tar.gz
serd-1460a4b83fb70b728906a24f49da4f1745a10776.tar.bz2
serd-1460a4b83fb70b728906a24f49da4f1745a10776.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
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;