Peanuuutz / tomlkt

Multiplatform TOML library with builtin support for kotlinx.serialization
Apache License 2.0
117 stars 5 forks source link

New crash with 0.3.3 `UnexpectedTokenException` #51

Closed Wavesonics closed 1 year ago

Wavesonics commented 1 year ago

I have a test that just started throwing: internal.UnexpectedTokenException: '\r' (L1)

On this data:

[[events]]
id = 1
order = 0
date = "Date 1"
content = """
Content 1"""

[[events]]
id = 2
order = 1
date = "Date 2"
content = """
Content 2"""

[[events]]
id = 3
order = 2
date = "Date 3"
content = """
Content 3"""
Peanuuutz commented 1 year ago

?? That's weird. It's definitely due to "\r\n" thing, which does have tests.

Will fix it tomorrow.

Peanuuutz commented 1 year ago

0.3.4 dropped. Please check if that works properly.

Wavesonics commented 1 year ago

That looks to have fixed it, thanks!