Skip to content

Commit

Permalink
Revert removing of open_ended after top level plain scalar
Browse files Browse the repository at this point in the history
See also issue #60

Revert "This code is not needed and breaks tests"

This reverts commit 56400d9.
  • Loading branch information
perlpunk committed Jun 29, 2018
1 parent f6e09f8 commit 8ee83c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/emitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,10 @@ yaml_emitter_write_plain_scalar(yaml_emitter_t *emitter,

emitter->whitespace = 0;
emitter->indention = 0;
if (emitter->root_context)
{
emitter->open_ended = 1;
}

return 1;
}
Expand Down

0 comments on commit 8ee83c0

Please sign in to comment.