aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/writer.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 394252ad..e05c420f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,10 @@
serd (0.18.1) unstable;
+ * Fix bug that caused "a" abbreviation in non-predicate position
* Disable timestamps in HTML documentation for reproducible build
* Fix clashing symbol "error" in amalgamation build
- -- David Robillard <d@drobilla.net> Sun, 09 Sep 2012 03:38:08 -0400
+ -- David Robillard <d@drobilla.net> Wed, 14 Nov 2012 10:48:57 -0500
serd (0.18.0) stable;
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;