From 4d51668a2f9bcc143a5ac00208d588cd9fb4e2a1 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 ec21811c..fb13fa96 100644 --- a/src/writer.c +++ b/src/writer.c @@ -1047,6 +1047,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