]> andersk Git - libyaml.git/commitdiff
Don't emit document-end marker at the end of stream
authorTina Müller <cpan2@tinita.de>
Fri, 29 Jun 2018 21:16:26 +0000 (23:16 +0200)
committerTina Müller <cpan2@tinita.de>
Fri, 29 Jun 2018 22:16:34 +0000 (00:16 +0200)
(only when explicitly requested)

@jrtc27++ for the patch.

See #60

src/emitter.c

index 32fe07c7cd15024deba7e8750e6f2227d67f49fe..274449577f24b50788b4194f83dd65e600bb2d59 100644 (file)
@@ -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;
This page took 0.034915 seconds and 5 git commands to generate.