{"action":"created","issue":{"url":"https://api.github.com/repos/sorensen/ascii-table/issues/12","repository_url":"https://api.github.com/repos/sorensen/ascii-table","labels_url":"https://api.github.com/repos/sorensen/ascii-table/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/sorensen/ascii-table/issues/12/comments","events_url":"https://api.github.com/repos/sorensen/ascii-table/issues/12/events","html_url":"https://github.com/sorensen/ascii-table/issues/12","id":105893976,"number":12,"title":"Headings do not align with the content","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-10T20:44:17Z","updated_at":"2016-04-11T20:59:56Z","closed_at":null,"body":"```\r\n  Line   Column   Type                Message                                                                       Rule ID\r\n\r\n     1        1   warning   Definition for rule 'react/no-unused-vars' was not found                      react/no-unused-vars\r\n    15        5   error     Variables within the same declaration block should be sorted alphabetically   sort-vars\r\n    17        5   error     Variables within the same declaration block should be sorted alphabetically   sort-vars\r\n    18        5   error     Variables within the same declaration block should be sorted alphabetically   sort-vars\r\n    35        9   error     Variables within the same declaration block should be sorted alphabetically   sort-vars\r\n    35        9   error     Variable 'appendPaths' should not be initialized on declaration               init-declarations\r\n```\r\n\r\nThe code:\r\n\r\n```js\r\ntable.setHeading([`Line`, `Column`, `Type`, `Message`, `Rule ID`]);\r\ntable.setHeadingAlignLeft();\r\ntable.addRow([\r\n    message.line || 0,\r\n    message.column || 0,\r\n    messageType,\r\n    message.message.replace(/\\.$/, ``),\r\n    chalk.gray(message.ruleId || ``)\r\n]);\r\n```\r\n\r\nI'd expect headings to align with the beginning of the text in each column."},"comment":{"url":"https://api.github.com/repos/sorensen/ascii-table/issues/comments/208558716","html_url":"https://github.com/sorensen/ascii-table/issues/12#issuecomment-208558716","issue_url":"https://api.github.com/repos/sorensen/ascii-table/issues/12","id":208558716,"user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T20:59:56Z","updated_at":"2016-04-11T20:59:56Z","body":"https://www.npmjs.com/package/string-length"}}