summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scanner.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 1414401..b190c7e 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1324,6 +1324,13 @@ yaml_parser_fetch_stream_end(yaml_parser_t *parser)
{
yaml_token_t token;
+ /* Force new line. */
+
+ if (parser->mark.column != 0) {
+ parser->mark.column = 0;
+ parser->mark.line ++;
+ }
+
/* Reset the indentation level. */
if (!yaml_parser_unroll_indent(parser, -1))