-
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
Whitespace inside quoted values should not be trimmed #140
Comments
The white spaces are preserved between quotes ( Lines 1548 to 1569 in b2a09b9
|
Outside of that function, the value is trimmed Line 1357 in b2a09b9
When I notice this issue I was only using escaped whitespace ( |
Ah, right. I couldn't remember why we should trim the value after it was parsed. |
But you think that there might be a good reason to do so? |
I noticed that quoting a value isn't enough to preserve leading or trailing whitespace.
This code unconditionally trims the value returned by the
parse_value
functionrust-ini/src/lib.rs
Line 1357 in b2a09b9
One of the reasons quoting is commonly supported in ini files is to allow explicit whitespace.
I imagine the solution is to move the
trim
to inside of theparse_value
and only call it when the value is unquoted.The text was updated successfully, but these errors were encountered: