From 96a25084fbc1c749019f5e2b21b657dd3cf09c88 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 1b691887..502d74d3 100644 --- a/src/writer.c +++ b/src/writer.c @@ -1075,6 +1075,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