Skip to content

Commit 56f4b17

Browse files
committed
Don't emit document-end marker at the end of stream
(only when explicitly requested) @jrtc27++ for the patch. See #60
1 parent 8ee83c0 commit 56f4b17

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/emitter.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,6 @@ yaml_emitter_emit_document_start(yaml_emitter_t *emitter,
649649

650650
else if (event->type == YAML_STREAM_END_EVENT)
651651
{
652-
if (emitter->open_ended)
653-
{
654-
if (!yaml_emitter_write_indicator(emitter, "...", 1, 0, 0))
655-
return 0;
656-
if (!yaml_emitter_write_indent(emitter))
657-
return 0;
658-
}
659652

660653
if (!yaml_emitter_flush(emitter))
661654
return 0;

0 commit comments

Comments
 (0)