]> andersk Git - libyaml.git/commitdiff
Revert removing of open_ended after top level plain scalar
authorTina Müller <cpan2@tinita.de>
Fri, 29 Jun 2018 19:44:19 +0000 (21:44 +0200)
committerTina Müller <cpan2@tinita.de>
Fri, 29 Jun 2018 19:44:19 +0000 (21:44 +0200)
See also issue #60

Revert "This code is not needed and breaks tests"

This reverts commit 56400d976a1999156b1abfd674c3122843980260.

src/emitter.c

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