Him188 / yamlkt

Multiplatform YAML parser & serializer for kotlinx.serialization written in pure Kotlin
Apache License 2.0
132 stars 14 forks source link

Parsing error if there is no newline at end of file #69

Open FloEdelmann opened 8 months ago

FloEdelmann commented 8 months ago

When parsing this file (with default settings), YamlKt throws a parsing error, even though it is valid YAML. Note that it does not have a newline character (\n) at the end of the file. A newline at the end of the file is not required by the YAML standard.

By manually adding that character, the file parses fine.

YamlKt version 0.13.0.