Skip to content
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

Implement ParseOption::indented_multiline_values #139

Merged

Conversation

davidhalter
Copy link
Contributor

I implemented indented multiline values. This should be able to parse most ini files that the Python configparser crate is able to parse.

There are a lot of other things that the Python configparser crate is able to do, but there is no way we are quickly implementing all of it.

I also decided against returning an Err in case of a multi-line key. I suspect that this will cause quite a few errors in programs that simply try to parse configparser-like ini files and where some of the keys were just ignored. I'm not sure how to proceed there. I would definitely release a new minor or major version, because it will break some programs.

Fixes #138.

@zonyitoo zonyitoo merged commit b2a09b9 into zonyitoo:master Nov 5, 2024
6 checks passed
@zonyitoo
Copy link
Owner

ParseOption::indented_multiline_values would be renamed to enabled_indented_mutiline_value for naming consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing of Python multiline configparser ini dialect
2 participants