arcnmx / serde-ini

Windows INI file {de,}serialization
MIT License
19 stars 17 forks source link

Ignore whitespace when parsing key/value pairs #7

Closed alexjg closed 5 years ago

alexjg commented 5 years ago

I ran into this when trying to parse git config files. I've opted to just ignore surrounding whitespace on key/value pairs. I guess it would be possible to add a setting to control this behaviour as it's technically backwards incompatible. Thoughts?

arcnmx commented 5 years ago

Sorry for taking so long to get to this. I think it might be nice to have an option, but this seems to be the default behaviour of GetPrivateProfileString so sure. I guess in that case quotes should also be supported...