{"action":"closed","issue":{"url":"https://api.github.com/repos/ruby/csv/issues/35","repository_url":"https://api.github.com/repos/ruby/csv","labels_url":"https://api.github.com/repos/ruby/csv/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ruby/csv/issues/35/comments","events_url":"https://api.github.com/repos/ruby/csv/issues/35/events","html_url":"https://github.com/ruby/csv/issues/35","id":309564039,"node_id":"MDU6SXNzdWUzMDk1NjQwMzk=","number":35,"title":"CSV.generate_line (and others) generating unexpected results for pipe-delimited values","user":{"login":"contentfree","id":10958,"node_id":"MDQ6VXNlcjEwOTU4","avatar_url":"https://avatars0.githubusercontent.com/u/10958?v=4","gravatar_id":"","url":"https://api.github.com/users/contentfree","html_url":"https://github.com/contentfree","followers_url":"https://api.github.com/users/contentfree/followers","following_url":"https://api.github.com/users/contentfree/following{/other_user}","gists_url":"https://api.github.com/users/contentfree/gists{/gist_id}","starred_url":"https://api.github.com/users/contentfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentfree/subscriptions","organizations_url":"https://api.github.com/users/contentfree/orgs","repos_url":"https://api.github.com/users/contentfree/repos","events_url":"https://api.github.com/users/contentfree/events{/privacy}","received_events_url":"https://api.github.com/users/contentfree/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-28T23:08:03Z","updated_at":"2019-01-05T06:13:00Z","closed_at":"2019-01-05T06:13:00Z","author_association":"NONE","body":"Given `CSV.generate_line([\"\",\"\"], col_sep: '|')` the resulting `\"\"|\"\"` is unexpected. The expected result is a simple `|`.\r\n\r\nIt appears the issue is caused by https://github.com/ruby/csv/blob/ba560e407a152afffea589d832084c249471eeb6/lib/csv.rb#L1438. What's the reason for quoting empty values? \r\n\r\nIf the current behavior is on purpose (which seems to be the case), could an option be introduced to *not* quote empty values, such as `quote_empty: true`?\r\n\r\n(Also, does anyone know the smallest workaround for this that doesn't break legitimate double-double-quotes in CSV quoting? "}}
{"actor":{"display_login":"kou"}}