-
Notifications
You must be signed in to change notification settings - Fork 79
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
Support array like string #91
Comments
It doesn't look like in INI format.
It looks like multi-line string in YAML. Can Python parse it with |
Setuptools and other libraries I've used don't seem to be bothered by this. This is a standard I just discovered that it wasn't really standard with EDIT: yes,
|
Just read the code in I have also searched for how others ini parser support "multiline values", but seems that this is a specific feature in Python. PRs are welcome, or I may try to implement it in weekends. |
Unfortunately, I'm not that good with rust. I'm just beginning and I have no clue on how rust-ini works in details 😅. Can I let you do it when you're available and willing to ? I edited the file and made a simple string line as a workaround. |
Just wanted to share my interest for in multi-line parsing. I wasn't aware that this isn't an INI standard. Is this feature still on the table for |
Currently not, because I don't know if there is any specification of "array like string" definition. Don't know what is the "correct" way to implement this feature. |
My use case is effectively what I'm not sure if "array like string" is something different, but parsing new-line-delimited, indented values is what I'm in need of. I'm surprised this isn't specified. I'll look into it more. Thanks for the quick response! |
Hello!
I've noticed an error when parsing a
setup.cfg
(you can find it here).Outside of inline comments not supported (not a big deal), you raise an error when reading array like string: https://github.com/pypa/setuptools/blob/main/setup.cfg#L9 .
This would be great feature to add as many python projects use this kind of string.
Error:
Error: 17:0 expecting "[Some('='), Some(':')]" but found EOF.
Thanks !
The text was updated successfully, but these errors were encountered: