-
Notifications
You must be signed in to change notification settings - Fork 60
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
Problems with indents in ini files #104
Comments
Can you try with the |
It just gives me the help screen so i guess it's an error, the help screen only mentions the 'nospace' option. Btw I'm testing on latest ubuntu but will use on docker (alpine). |
You could try downloading the latest from github and using the script directly. |
Downloading latest and using --ini-options=ignoreindent works. Thanks |
I'm dealing with an INI with indented keys, for example:
If I try to add a new key with crudini --set test1.ini key2 value2 i get the following:
Also if the section is indented I get other problems, for example:
If I add a key to [section one] with
crudini --set test2.ini "section 1" "key2" "value2"
I end up with the following:I guess it ignores [section 2] and adds it to the end. Also crudini --get test2.ini only lists [section 1]. I think it should get sections/keys even if indented. Don't know if it's a crudini problem or iniparse problem though.
The text was updated successfully, but these errors were encountered: