From 1138b0b3556a7c2daaf1dca7a0e058cb87355f59 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') 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; } -- cgit v1.2.1