Skip to content

Commit

Permalink
Don't emit document-end marker at the end of stream
Browse files Browse the repository at this point in the history
(only when explicitly requested)

@jrtc2++ for the patch.

See #60
  • Loading branch information
perlpunk committed Jun 29, 2018
1 parent 8ee83c0 commit 8e33199
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/emitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e33199

Please sign in to comment.