From 9a22b24d96e89abc403cff82f50fe4db991aecb8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Mar 2019 18:00:41 +0100 Subject: Reset writer to empty when finished to avoid spurious blank lines --- src/writer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/writer.c') 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; } -- cgit v1.2.1