{"action":"created","issue":{"url":"https://api.github.com/repos/dbcli/pgcli/issues/609","repository_url":"https://api.github.com/repos/dbcli/pgcli","labels_url":"https://api.github.com/repos/dbcli/pgcli/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/dbcli/pgcli/issues/609/comments","events_url":"https://api.github.com/repos/dbcli/pgcli/issues/609/events","html_url":"https://github.com/dbcli/pgcli/issues/609","id":187248465,"number":609,"title":"\\dT+ not printing correctly","user":{"login":"ervoiox","id":17820206,"avatar_url":"https://avatars.githubusercontent.com/u/17820206?v=3","gravatar_id":"","url":"https://api.github.com/users/ervoiox","html_url":"https://github.com/ervoiox","followers_url":"https://api.github.com/users/ervoiox/followers","following_url":"https://api.github.com/users/ervoiox/following{/other_user}","gists_url":"https://api.github.com/users/ervoiox/gists{/gist_id}","starred_url":"https://api.github.com/users/ervoiox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ervoiox/subscriptions","organizations_url":"https://api.github.com/users/ervoiox/orgs","repos_url":"https://api.github.com/users/ervoiox/repos","events_url":"https://api.github.com/users/ervoiox/events{/privacy}","received_events_url":"https://api.github.com/users/ervoiox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T03:53:30Z","updated_at":"2016-11-04T09:28:32Z","closed_at":null,"body":"Hi,\r\n\r\nIf you create a custom type, and enter the command `\\dT+ invoice_type` for example, the printed output from pgcli looks like the following:\r\n\r\n```\r\n+----------+--------------+-----------------+--------+------------+---------------------+---------------+\r\n| Schema   | Name         | Internal name   | Size   | Elements   |   Access privileges |   Description |\r\n|----------+--------------+-----------------+--------+------------+---------------------+---------------|\r\n| public   | invoice_type | invoice_type    | 4      | abcde12345_subscription\r\ngeneral\r\ncustom            |              <null> |        <null> |\r\n+----------+--------------+-----------------+--------+------------+---------------------+---------------+\r\n```\r\n\r\non psql, it looks like this:\r\n\r\n```\r\n                                                 List of data types\r\n Schema |     Name     | Internal name | Size |        Elements         |  Owner  | Access privileges | Description \r\n--------+--------------+---------------+------+-------------------------+---------+-------------------+-------------\r\n public | invoice_type | invoice_type  | 4    | abcde12345_subscription+| vagrant |                   | \r\n        |              |               |      | general                +|         |                   | \r\n        |              |               |      | custom                  |         |                   | \r\n(1 row)\r\n```\r\n\r\nExtended mode also does not look quite right:\r\n\r\n```\r\n-[ RECORD 0 ]-------------------------\r\nSchema            | public\r\nName              | invoice_type\r\nInternal name     | invoice_type\r\nSize              | 4\r\nElements          | abcde12345_subscription\r\ngeneral\r\ncustom\r\nAccess privileges | <null>\r\nDescription       | <null>\r\n```\r\n\r\nvs\r\n\r\n```\r\nList of data types\r\n-[ RECORD 1 ]-----+------------------------\r\nSchema            | public\r\nName              | invoice_type\r\nInternal name     | invoice_type\r\nSize              | 4\r\nElements          | abcde12345_subscription+\r\n                  | general                +\r\n                  | custom\r\nOwner             | vagrant\r\nAccess privileges | \r\nDescription       |\r\n```\r\n\r\nI am on pgcli 1.3.1, postgres server 9.5.4, psql 9.5.5 and python 2.7."},"comment":{"url":"https://api.github.com/repos/dbcli/pgcli/issues/comments/258381438","html_url":"https://github.com/dbcli/pgcli/issues/609#issuecomment-258381438","issue_url":"https://api.github.com/repos/dbcli/pgcli/issues/609","id":258381438,"user":{"login":"darikg","id":6875882,"avatar_url":"https://avatars.githubusercontent.com/u/6875882?v=3","gravatar_id":"","url":"https://api.github.com/users/darikg","html_url":"https://github.com/darikg","followers_url":"https://api.github.com/users/darikg/followers","following_url":"https://api.github.com/users/darikg/following{/other_user}","gists_url":"https://api.github.com/users/darikg/gists{/gist_id}","starred_url":"https://api.github.com/users/darikg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darikg/subscriptions","organizations_url":"https://api.github.com/users/darikg/orgs","repos_url":"https://api.github.com/users/darikg/repos","events_url":"https://api.github.com/users/darikg/events{/privacy}","received_events_url":"https://api.github.com/users/darikg/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T09:28:32Z","updated_at":"2016-11-04T09:28:32Z","body":"It's #446 -- the tabulate library doesn't handle newlines properly. It'd definitely be nice to fix"}}
{"actor":{"display_login":"darikg"}}