{"action":"opened","issue":{"url":"https://api.github.com/repos/rubenv/node-xlsx-writer/issues/12","repository_url":"https://api.github.com/repos/rubenv/node-xlsx-writer","labels_url":"https://api.github.com/repos/rubenv/node-xlsx-writer/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/rubenv/node-xlsx-writer/issues/12/comments","events_url":"https://api.github.com/repos/rubenv/node-xlsx-writer/issues/12/events","html_url":"https://github.com/rubenv/node-xlsx-writer/issues/12","id":177161020,"number":12,"title":"zero numbers are written as empty cell","user":{"login":"uhucrew","id":2233058,"avatar_url":"https://avatars.githubusercontent.com/u/2233058?v=3","gravatar_id":"","url":"https://api.github.com/users/uhucrew","html_url":"https://github.com/uhucrew","followers_url":"https://api.github.com/users/uhucrew/followers","following_url":"https://api.github.com/users/uhucrew/following{/other_user}","gists_url":"https://api.github.com/users/uhucrew/gists{/gist_id}","starred_url":"https://api.github.com/users/uhucrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uhucrew/subscriptions","organizations_url":"https://api.github.com/users/uhucrew/orgs","repos_url":"https://api.github.com/users/uhucrew/repos","events_url":"https://api.github.com/users/uhucrew/events{/privacy}","received_events_url":"https://api.github.com/users/uhucrew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-15T12:17:53Z","updated_at":"2016-09-15T12:17:53Z","closed_at":null,"body":"Numbers with zero value become an empty cell in the export. The Problem is here,  0 || \"\" evaluates to an empty string, not the number zero:\r\nsrc/index.coffee:56\r\n@_addCell(obj[key] || \"\", col + 1)\r\n\r\nPossibly this is a fix? (I'm not familiar with coffescript):\r\n@_addCell(obj[key] === 0 ? 0 : obj[key] || \"\", col + 1)\r\n"}}
{"actor":{"display_login":"uhucrew"}}