Menu

#559 round-trip fails because value (a seq item) incorrectly renders on same line as key

open
nobody
None
minor
bug
2026-01-14
2026-01-14
No

the input is contained as string literal inside the script, and it tries to describe itself. note that the first thing the script does is verify the version, I'm running 0.19.1. here's the output I get:

nope, the dash indicating list item can't follow the colon
---
a seq of maps with other seqs of maps nested inside:
# needs this comment here, and an *empty* first item

- {}
- the line after this one gets joined to this one: - {k: v}
# that map on previous line can empty, e.g. also fails with {}

the first comment and the empty map are important to reproducing this bug, delete that comment or put content into that first map and it affects the rendering of the "this one" line.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB