-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle multi-line array #166
Conversation
Thank you very much for this PR! This bug is very annoying and prevents us to use this library in our project. (as soon as I tried to parse example toml from our tests I encountered it...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, looks very easy! thank you so much
ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/parsers/TomlParser.kt
Fixed
Show fixed
Hide fixed
ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/parsers/TomlParser.kt
Fixed
Show fixed
Hide fixed
ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/parsers/TomlParser.kt
Fixed
Show fixed
Hide fixed
ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/parsers/TomlParser.kt
Fixed
Show fixed
Hide fixed
ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/parsers/TomlParser.kt
Outdated
Show resolved
Hide resolved
ktoml-core/src/commonTest/kotlin/com/akuleshov7/ktoml/decoders/ArrayDecoderTest.kt
Show resolved
Hide resolved
Wait, I found a little bug. I'm gonna fix it soon |
pls also don't forget to add yourself to acknowledgements in readme :) |
It's not yet easy, as soon as we will merge this PR, we will make a release... 😄 |
2bead00
to
f37118a
Compare
@akuleshov7 Done |
thank you, you are awesome! |
Fix #126
Hello! And thanks for your library! I love Kotlin and I like KTOML format. But I have never done any parsers before. So, I hope you will be patient with me :)
My idea is to merge multiline values into a single line and then process it as usually. If I missed something or this code needs improvement - I am ready.