diff options
author | Tina Müller <cpan2@tinita.de> | 2018-06-29 23:16:26 +0200 |
---|---|---|
committer | Tina Müller <cpan2@tinita.de> | 2018-06-30 00:16:34 +0200 |
commit | 56f4b17221868593d6903ee58d6d679b690cf4df (patch) | |
tree | 7e3b43030b4dffb30894684bbd5ff207cdb4b0ba /src | |
parent | 8ee83c0da22fe9aa7dea667be8f899a7e32ffb83 (diff) | |
download | libyaml-git-56f4b17221868593d6903ee58d6d679b690cf4df.tar.gz |
Don't emit document-end marker at the end of stream
(only when explicitly requested)
@jrtc27++ for the patch.
See #60
Diffstat (limited to 'src')
-rw-r--r-- | src/emitter.c | 7 |
1 files changed, 0 insertions, 7 deletions
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; |