aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 18:00:41 +0100
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commitb01df0517bf1abd78ec3a13e4599c325cc2e1fd2 (patch)
tree5212c1172709ef2eabe7d569d23ff67f7c5e6582
parent92c7329ede45876e3b7e7e84d09a2eb0c3f9440c (diff)
downloadserd-b01df0517bf1abd78ec3a13e4599c325cc2e1fd2.tar.gz
serd-b01df0517bf1abd78ec3a13e4599c325cc2e1fd2.tar.bz2
serd-b01df0517bf1abd78ec3a13e4599c325cc2e1fd2.zip
Reset writer to empty when finished to avoid spurious blank lines
-rw-r--r--src/writer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index e342c23e..a1fcbddd 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -943,6 +943,7 @@ serd_writer_finish(SerdWriter* writer)
free_context(writer);
writer->indent = 0;
writer->context = WRITE_CONTEXT_NULL;
+ writer->empty = true;
return SERD_SUCCESS;
}