aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 18:00:41 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commit9a22b24d96e89abc403cff82f50fe4db991aecb8 (patch)
tree84c11cdce8538beb900ec3a9d66591b31cdf09bd
parent35487b363ee5d253ac2e64cc012a1f06f5dcbdc4 (diff)
downloadserd-9a22b24d96e89abc403cff82f50fe4db991aecb8.tar.gz
serd-9a22b24d96e89abc403cff82f50fe4db991aecb8.tar.bz2
serd-9a22b24d96e89abc403cff82f50fe4db991aecb8.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 2fc593d9..ee935269 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -915,6 +915,7 @@ serd_writer_finish(SerdWriter* writer)
free_context(writer);
writer->indent = 0;
writer->context = WRITE_CONTEXT_NULL;
+ writer->empty = true;
return SERD_SUCCESS;
}