aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 18:00:41 +0100
committerDavid Robillard <d@drobilla.net>2019-12-20 10:26:55 -0500
commit1138b0b3556a7c2daaf1dca7a0e058cb87355f59 (patch)
treea32e294c067d9a4b3ff18057059002a61b511307 /src
parent3a4c1351558f17f524370b5e98ef8c3e497992e5 (diff)
downloadserd-1138b0b3556a7c2daaf1dca7a0e058cb87355f59.tar.gz
serd-1138b0b3556a7c2daaf1dca7a0e058cb87355f59.tar.bz2
serd-1138b0b3556a7c2daaf1dca7a0e058cb87355f59.zip
Reset writer to empty when finished to avoid spurious blank lines
Diffstat (limited to 'src')
-rw-r--r--src/writer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index 992d85ee..fcab66cf 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -916,6 +916,7 @@ serd_writer_finish(SerdWriter* writer)
free_context(writer);
writer->indent = 0;
writer->context = WRITE_CONTEXT_NULL;
+ writer->empty = true;
return SERD_SUCCESS;
}