aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-24 10:01:32 -0400
committerDavid Robillard <d@drobilla.net>2024-06-24 10:01:32 -0400
commit53fed50c8e37bf873196c2503814cd8b33acd298 (patch)
tree34cd5ff9744c320e1b9203ca87d023d8c88e5434 /src/writer.c
parent570b40e58eed90c5ec747c44e791c5321c2ea604 (diff)
downloadserd-53fed50c8e37bf873196c2503814cd8b33acd298.tar.gz
serd-53fed50c8e37bf873196c2503814cd8b33acd298.tar.bz2
serd-53fed50c8e37bf873196c2503814cd8b33acd298.zip
Write blank lines between graphs and statements in TriG
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index 2b127d04..c0f1a4a7 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -987,8 +987,8 @@ serd_writer_write_statement(SerdWriter* writer,
(!graph && writer->context.graph.type)) {
TRY(st, terminate_context(writer));
reset_context(writer, RESET_GRAPH | RESET_INDENT);
+ TRY(st, write_newline(writer));
if (graph) {
- TRY(st, write_newline(writer));
TRY(st, write_node(writer, graph, datatype, lang, FIELD_GRAPH, flags));
TRY(st, write_sep(writer, SEP_GRAPH_BEGIN));
copy_node(&writer->context.graph, graph);