aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-09 18:28:35 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commitfc2114a10769349d38b3215bc95ded855a2be5b6 (patch)
tree38c79a33bac7d81718e18aced31b238235e8a44d /src/writer.c
parent9b1139fe7045a0630e87501235af21803860b80c (diff)
downloadserd-fc2114a10769349d38b3215bc95ded855a2be5b6.tar.gz
serd-fc2114a10769349d38b3215bc95ded855a2be5b6.tar.bz2
serd-fc2114a10769349d38b3215bc95ded855a2be5b6.zip
[WIP] Preserve anonymous graph syntax in TriG
[WIP] Untested
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index 372e4279..940b22a0 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -923,7 +923,8 @@ write_blank(SerdWriter* const writer,
}
if ((field == SERD_SUBJECT && (flags & SERD_EMPTY_S)) ||
- (field == SERD_OBJECT && (flags & SERD_EMPTY_O))) {
+ (field == SERD_OBJECT && (flags & SERD_EMPTY_O)) ||
+ (field == SERD_GRAPH && (flags & SERD_EMPTY_G))) {
return esink("[]", 2, writer);
}
}