]> andersk Git - libyaml.git/blobdiff - src/writer.c
Force a new line at the end of the input stream even if there are no a new line chara...
[libyaml.git] / src / writer.c
index 21313722f57f2b214958c03d32edb15cf5919c1a..ec0e477dabdafecd55fb0762393a95708b094430 100644 (file)
@@ -37,6 +37,9 @@ yaml_emitter_flush(yaml_emitter_t *emitter)
     assert(emitter->write_handler); /* Write handler must be set. */
     assert(emitter->encoding);  /* Output encoding must be set. */
 
+    emitter->buffer.last = emitter->buffer.pointer;
+    emitter->buffer.pointer = emitter->buffer.start;
+
     /* Check if the buffer is empty. */
 
     if (emitter->buffer.start == emitter->buffer.last) {
This page took 0.080578 seconds and 4 git commands to generate.