MaybeJustJames / yaml

Work with YAML in Elm.
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

When encoding record elements, check if indentation is required #33

Closed MaybeJustJames closed 1 year ago

MaybeJustJames commented 1 year ago

Nested record element values that do not immediately begin with a newline character must have a space between the colon (after the key) and the encoded value.

E.g. YAML interprets this as a string:

test:[]

But this as a record containing a single key ("test") with a value being an empty list:

test: []

Closes #32

Checklist: