{"action":"created","issue":{"url":"https://api.github.com/repos/Thomasdezeeuw/ini/issues/11","labels_url":"https://api.github.com/repos/Thomasdezeeuw/ini/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Thomasdezeeuw/ini/issues/11/comments","events_url":"https://api.github.com/repos/Thomasdezeeuw/ini/issues/11/events","html_url":"https://github.com/Thomasdezeeuw/ini/issues/11","id":120778643,"number":11,"title":"Quoted values get trimmed, which defeats the purpose of quoting","user":{"login":"kostix","id":112705,"avatar_url":"https://avatars.githubusercontent.com/u/112705?v=3","gravatar_id":"","url":"https://api.github.com/users/kostix","html_url":"https://github.com/kostix","followers_url":"https://api.github.com/users/kostix/followers","following_url":"https://api.github.com/users/kostix/following{/other_user}","gists_url":"https://api.github.com/users/kostix/gists{/gist_id}","starred_url":"https://api.github.com/users/kostix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostix/subscriptions","organizations_url":"https://api.github.com/users/kostix/orgs","repos_url":"https://api.github.com/users/kostix/repos","events_url":"https://api.github.com/users/kostix/events{/privacy}","received_events_url":"https://api.github.com/users/kostix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-07T13:54:55Z","updated_at":"2015-12-07T16:10:06Z","closed_at":"2015-12-07T15:41:01Z","body":"The following INI file contains a quoted value:\r\n\r\n````\r\n[Section]\r\n    Foo = \"    Bar    \"\r\n````\r\n\r\nBut after parsing `Foo` is mapped to \"Bar\", not to \"    Bar    \" -- as I would expect it.\r\n\r\nThe rationale is simple: since INI format implies trimming of whitespace on both ends of keys and values, quoting is there mostly to preserve that whitespace, if needed.\r\n\r\nI suspect the problem is [here](https://github.com/Thomasdezeeuw/ini/blob/master/parser.go#L203) as the value gets trimmed unconditionally."},"comment":{"url":"https://api.github.com/repos/Thomasdezeeuw/ini/issues/comments/162571215","html_url":"https://github.com/Thomasdezeeuw/ini/issues/11#issuecomment-162571215","issue_url":"https://api.github.com/repos/Thomasdezeeuw/ini/issues/11","id":162571215,"user":{"login":"kostix","id":112705,"avatar_url":"https://avatars.githubusercontent.com/u/112705?v=3","gravatar_id":"","url":"https://api.github.com/users/kostix","html_url":"https://github.com/kostix","followers_url":"https://api.github.com/users/kostix/followers","following_url":"https://api.github.com/users/kostix/following{/other_user}","gists_url":"https://api.github.com/users/kostix/gists{/gist_id}","starred_url":"https://api.github.com/users/kostix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostix/subscriptions","organizations_url":"https://api.github.com/users/kostix/orgs","repos_url":"https://api.github.com/users/kostix/repos","events_url":"https://api.github.com/users/kostix/events{/privacy}","received_events_url":"https://api.github.com/users/kostix/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T16:10:06Z","updated_at":"2015-12-07T16:10:06Z","body":"Thanks for coming up to this so fast! My tests now pass.\r\n\r\nAs to the parse code... Well, yeah, it could be improved but at least you don't use regular expressions for parsing, so fear not: it's already good enough to be useful!"}}