-
Notifications
You must be signed in to change notification settings - Fork 4
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
Using a quoted string in values #4
Comments
There is no option for this. I have never seen quotes be part of the INI file standard. Unlike with CSV files, I don't see why they would be necessary. Who is writing INI files that way? If you can show me where this is standard, I'll consider adding support for it. Meanwhile, you can remove those quotes using |
Well, the INI files format is indeed a loose one. I've been using for a long time the GetPrivateProfileString API call, from Win32, and I had to replicate it in different environments. It uses both single and double quotes escaping in values. I think that sometimes it can be a help in reading complex assignments, like Just a welcome feature, not an issue - sorry if I used the "issue" space on GitHub! 😺 |
So, your first link talks about supporting quotes around the key.
This would actually be necessary if you needed an equal sign in the key. I might consider this. But it's different from what you need. I couldn't find where the Wikipedia article talked about quoted values. |
Oh, I think their text is a bit convoluted, but when they write
it refers to the value string to be assigned... I hope - you retrieve the value string, reasonably
And in text
|
I'm closing this issue for now. I don't see anyone else needing this and removing quotes now could potentially break existing code that expects quotes to be left in. Feel free to reach out if you can think of any other arguments for making a change here. |
I see that with a key's value as in
the GetSetting property obtains a string like
"\"My value\""
not interpreting the quotes as... quotes 😄
I also see that quotes aren't necessary for embedded spaces, but is there any option to force using quotes in strings when there are blanks? Hence, automatically removing the quotes
The text was updated successfully, but these errors were encountered: