aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index a9141f78..7cb28d0a 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -1416,6 +1416,10 @@ serd_writer_set_prefix(SerdWriter* writer,
reset_context(writer, true);
}
+ if (writer->flags & SERD_WRITE_CONTEXTUAL) {
+ return st;
+ }
+
TRY(st, esink("@prefix ", 8, writer));
TRY(st, esink(serd_node_string(name), name->length, writer));
TRY(st, esink(": <", 3, writer));