{"action":"closed","issue":{"url":"https://api.github.com/repos/tecfu/tty-table/issues/11","repository_url":"https://api.github.com/repos/tecfu/tty-table","labels_url":"https://api.github.com/repos/tecfu/tty-table/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/tecfu/tty-table/issues/11/comments","events_url":"https://api.github.com/repos/tecfu/tty-table/issues/11/events","html_url":"https://github.com/tecfu/tty-table/issues/11","id":190013047,"number":11,"title":"Double-width East Asian characters vs other unicode characters","user":{"login":"kac-","id":604344,"avatar_url":"https://avatars.githubusercontent.com/u/604344?v=3","gravatar_id":"","url":"https://api.github.com/users/kac-","html_url":"https://github.com/kac-","followers_url":"https://api.github.com/users/kac-/followers","following_url":"https://api.github.com/users/kac-/following{/other_user}","gists_url":"https://api.github.com/users/kac-/gists{/gist_id}","starred_url":"https://api.github.com/users/kac-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kac-/subscriptions","organizations_url":"https://api.github.com/users/kac-/orgs","repos_url":"https://api.github.com/users/kac-/repos","events_url":"https://api.github.com/users/kac-/events{/privacy}","received_events_url":"https://api.github.com/users/kac-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T10:59:06Z","updated_at":"2016-11-18T01:02:59Z","closed_at":"2016-11-18T01:02:59Z","body":"Hi,\r\nUsing Polish characters( like *ą,ć,ę* etc) cause layout breakage.\r\nOutput from `echo -e \"abc\\nabć\\nab한\" | ./node_modules/.bin/tty-table` is on [this screenshot](https://i.imgur.com/CdUaLhg.png).\r\n[Format.calculateLength](https://github.com/tecfu/tty-table/blob/master/src/format.js#L5) assumes all unicode chars to be two-char width on display which isn't true.\r\nImo correct way to implement it is to (re)use method from [npm east-asian-width](https://www.npmjs.com/package/east-asian-width)( see also **links** section at the bottom of project's page).\r\nCheers"}}
{"actor":{"display_login":"tecfu"}}