From: Tina Müller Date: Fri, 29 Jun 2018 21:16:26 +0000 (+0200) Subject: Don't emit document-end marker at the end of stream X-Git-Tag: upstream/0.2.2^2~19 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/56f4b17221868593d6903ee58d6d679b690cf4df Don't emit document-end marker at the end of stream (only when explicitly requested) @jrtc27++ for the patch. See #60 --- diff --git a/src/emitter.c b/src/emitter.c index 32fe07c..2744495 100644 --- a/src/emitter.c +++ b/src/emitter.c @@ -649,13 +649,6 @@ yaml_emitter_emit_document_start(yaml_emitter_t *emitter, else if (event->type == YAML_STREAM_END_EVENT) { - if (emitter->open_ended) - { - if (!yaml_emitter_write_indicator(emitter, "...", 1, 0, 0)) - return 0; - if (!yaml_emitter_write_indent(emitter)) - return 0; - } if (!yaml_emitter_flush(emitter)) return 0;