{"action":"created","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/870","labels_url":"https://api.github.com/repos/sass/libsass/issues/870/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/870/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/870/events","html_url":"https://github.com/sass/libsass/issues/870","id":56220665,"number":870,"title":"Fix string-interpolation of lists, and normalization of string-quoting","user":{"login":"lunelson","id":1242864,"avatar_url":"https://avatars.githubusercontent.com/u/1242864?v=3","gravatar_id":"","url":"https://api.github.com/users/lunelson","html_url":"https://github.com/lunelson","followers_url":"https://api.github.com/users/lunelson/followers","following_url":"https://api.github.com/users/lunelson/following{/other_user}","gists_url":"https://api.github.com/users/lunelson/gists{/gist_id}","starred_url":"https://api.github.com/users/lunelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunelson/subscriptions","organizations_url":"https://api.github.com/users/lunelson/orgs","repos_url":"https://api.github.com/users/lunelson/repos","events_url":"https://api.github.com/users/lunelson/events{/privacy}","received_events_url":"https://api.github.com/users/lunelson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/libsass/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/sass/libsass/labels/test%20written","name":"test written","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-02-02T10:43:55Z","updated_at":"2015-02-06T08:28:04Z","closed_at":null,"body":"This issue seems to have some crossover with #639 and #694. It pertains both to the normalization of string-quoting, and to the string-interpolation of lists. The test takes two lists of quoted strings, a comma-separated one and a space-separated one, each containing both double-quoted and single-quoted items, and passes them to a few interpolations, involving containing quotes and/or other characters. Corresponding spec to be PR'd forthwith.\r\n\r\n```scss\r\n$quoted-strings-csv: \"alpha\", \"beta\", 'gamma', 'delta';\r\n$quoted-strings-ssv: \"alpha\" \"beta\" 'gamma' 'delta';\r\n\r\n.csv {\r\n  output: $quoted-strings-csv;\r\n  output: #{$quoted-strings-csv};\r\n  output: \"[#{$quoted-strings-csv}]\";\r\n  output: \"#{$quoted-strings-csv}\";\r\n  output: \"[\"#{$quoted-strings-csv}\"]\";\r\n  output: '#{$quoted-strings-csv}';\r\n  output: \"['#{$quoted-strings-csv}']\";\r\n}\r\n\r\n.ssv {\r\n  output: $quoted-strings-ssv;\r\n  output: #{$quoted-strings-ssv};\r\n  output: \"[#{$quoted-strings-ssv}]\";\r\n  output: \"#{$quoted-strings-ssv}\";\r\n  output: \"[\"#{$quoted-strings-ssv}\"]\";\r\n  output: '#{$quoted-strings-ssv}';\r\n  output: \"['#{$quoted-strings-ssv}']\";\r\n}\r\n```\r\nruby-sass 3.4.11 output, according to SassMeister\r\n```css\r\n.csv {\r\n  output: \"alpha\", \"beta\", \"gamma\", \"delta\";\r\n  output: alpha, beta, gamma, delta;\r\n  output: \"[alpha, beta, gamma, delta]\";\r\n  output: \"alpha, beta, gamma, delta\";\r\n  output: \"[\"alpha, beta, gamma, delta\"]\";\r\n  output: \"alpha, beta, gamma, delta\";\r\n  output: \"['alpha, beta, gamma, delta']\"; }\r\n\r\n.ssv {\r\n  output: \"alpha\" \"beta\" \"gamma\" \"delta\";\r\n  output: alpha beta gamma delta;\r\n  output: \"[alpha beta gamma delta]\";\r\n  output: \"alpha beta gamma delta\";\r\n  output: \"[\"alpha beta gamma delta\"]\";\r\n  output: \"alpha beta gamma delta\";\r\n  output: \"['alpha beta gamma delta']\"; }\r\n```\r\noutput from sassc: 3.1.0-2-g2033 / libsass: 3.1.0-76-g71448:\r\n```css\r\n.csv {\r\n  output: \"alpha\", \"beta\", 'gamma', 'delta';\r\n  output: \"alpha\", \"beta\", 'gamma', 'delta';\r\n  output: \"[\"alpha\", \"beta\", 'gamma', 'delta']\";\r\n  output: \"\"alpha\", \"beta\", 'gamma', 'delta'\";\r\n  output: \"[\"\"alpha\", \"beta\", 'gamma', 'delta'\"]\";\r\n  output: '\"alpha\", \"beta\", 'gamma', 'delta'';\r\n  output: \"['\"alpha\", \"beta\", 'gamma', 'delta'']\"; }\r\n\r\n.ssv {\r\n  output: \"alpha\" \"beta\" 'gamma' 'delta';\r\n  output: \"alpha\" \"beta\" 'gamma' 'delta';\r\n  output: \"[\"alpha\" \"beta\" 'gamma' 'delta']\";\r\n  output: \"\"alpha\" \"beta\" 'gamma' 'delta'\";\r\n  output: \"[\"\"alpha\" \"beta\" 'gamma' 'delta'\"]\";\r\n  output: '\"alpha\" \"beta\" 'gamma' 'delta'';\r\n  output: \"['\"alpha\" \"beta\" 'gamma' 'delta'']\"; }\r\n```"},"comment":{"url":"https://api.github.com/repos/sass/libsass/issues/comments/73202419","html_url":"https://github.com/sass/libsass/issues/870#issuecomment-73202419","issue_url":"https://api.github.com/repos/sass/libsass/issues/870","id":73202419,"user":{"login":"lunelson","id":1242864,"avatar_url":"https://avatars.githubusercontent.com/u/1242864?v=3","gravatar_id":"","url":"https://api.github.com/users/lunelson","html_url":"https://github.com/lunelson","followers_url":"https://api.github.com/users/lunelson/followers","following_url":"https://api.github.com/users/lunelson/following{/other_user}","gists_url":"https://api.github.com/users/lunelson/gists{/gist_id}","starred_url":"https://api.github.com/users/lunelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunelson/subscriptions","organizations_url":"https://api.github.com/users/lunelson/orgs","repos_url":"https://api.github.com/users/lunelson/repos","events_url":"https://api.github.com/users/lunelson/events{/privacy}","received_events_url":"https://api.github.com/users/lunelson/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T08:28:04Z","updated_at":"2015-02-06T08:28:04Z","body":"This is great news @mgreter, thanks. It does seem to be as you say, that ruby sass interpolates a list by unquoting everything to make it one string, and if this in turn is quoted , the outermost will be normalized to double quotes. It might be worth asking @nex3 or @chriseppstein to chime in though, as I seem to remember my test gave different output in sass 3.3.x vs 3.4.x , so I think they updated this logic recently. "}}