{"action":"created","issue":{"url":"https://api.github.com/repos/jaytaylor/html2text/issues/20","repository_url":"https://api.github.com/repos/jaytaylor/html2text","labels_url":"https://api.github.com/repos/jaytaylor/html2text/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/jaytaylor/html2text/issues/20/comments","events_url":"https://api.github.com/repos/jaytaylor/html2text/issues/20/events","html_url":"https://github.com/jaytaylor/html2text/issues/20","id":248383768,"number":20,"title":"Pretty Tables: large tables break down (unfortunately) with index out of range...","user":{"login":"GwynethLlewelyn","id":304404,"avatar_url":"https://avatars1.githubusercontent.com/u/304404?v=4","gravatar_id":"","url":"https://api.github.com/users/GwynethLlewelyn","html_url":"https://github.com/GwynethLlewelyn","followers_url":"https://api.github.com/users/GwynethLlewelyn/followers","following_url":"https://api.github.com/users/GwynethLlewelyn/following{/other_user}","gists_url":"https://api.github.com/users/GwynethLlewelyn/gists{/gist_id}","starred_url":"https://api.github.com/users/GwynethLlewelyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GwynethLlewelyn/subscriptions","organizations_url":"https://api.github.com/users/GwynethLlewelyn/orgs","repos_url":"https://api.github.com/users/GwynethLlewelyn/repos","events_url":"https://api.github.com/users/GwynethLlewelyn/events{/privacy}","received_events_url":"https://api.github.com/users/GwynethLlewelyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-07T11:34:36Z","updated_at":"2017-08-08T15:47:22Z","closed_at":null,"body":"I'm _really_ loving your html2text functionality, especially because you turn some HTML features into quasi-Markdown text, which is more than awesome, it's close to perfection! Thank you very much!\r\n\r\nI have an application which attempts to write HTML logs to a WebSocket, but, when it fails to do so, it prints the logs out to the console, which, of course, looks awful for a human to read! I'm already using ANSI colour escapes to at least give some idea of what is urgent and what is not, but clearly a more legible output was necessary... and your package does exactly that, thank you!\r\n\r\nUnfortunately, with very large tables, it seems to fail with:\r\n\r\n```panic: runtime error: index out of range\r\n\r\ngoroutine 23 [running]:\r\ngithub.com/olekukonko/tablewriter.(*Table).printHeading(0xc4200126c0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/olekukonko/tablewriter/table.go:333 +0x47d\r\ngithub.com/olekukonko/tablewriter.(*Table).Render(0xc4200126c0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/olekukonko/tablewriter/table.go:112 +0x3a\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).handleTableElement(0xc4201fc0f0, 0xc42018b3b0, 0x1, 0x0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:270 +0x5f9\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).handleElement(0xc4201fc0f0, 0xc42018b3b0, 0xc4201d0160, 0xc420178000)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:217 +0x6ed\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverse(0xc4201fc0f0, 0xc42018b3b0, 0x7, 0x444868)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:325 +0x46\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverseChildren(0xc4201fc0f0, 0xc42018b340, 0xa, 0xc4201f7098)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:331 +0x47\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).handleElement(0xc4201fc0f0, 0xc42018b340, 0xc4201a7a70, 0x81)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:160 +0x76a\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverse(0xc4201fc0f0, 0xc42018b340, 0x68, 0x444868)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:325 +0x46\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverseChildren(0xc4201fc0f0, 0xc42018b2d0, 0xc4201f74ac, 0x1)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:331 +0x47\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).handleElement(0xc4201fc0f0, 0xc42018b2d0, 0x0, 0x0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:228 +0x48b\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverse(0xc4201fc0f0, 0xc42018b2d0, 0x0, 0x0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:325 +0x46\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverseChildren(0xc4201fc0f0, 0xc42018b1f0, 0xc4201f78c0, 0x45d9c4)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:331 +0x47\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).handleElement(0xc4201fc0f0, 0xc42018b1f0, 0x932bc0, 0x1)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:228 +0x48b\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverse(0xc4201fc0f0, 0xc42018b1f0, 0x7f1edd570000, 0x0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:325 +0x46\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverseChildren(0xc4201fc0f0, 0xc42018b180, 0x410e58, 0xf0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:331 +0x47\r\ngithub.com/jaytaylor/html2text.(*textifyTraverseContext).traverse(0xc4201fc0f0, 0xc42018b180, 0x0, 0x402c7e)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:318 +0x77\r\ngithub.com/jaytaylor/html2text.FromHTMLNode(0xc42018b180, 0xc4201f7f1d, 0x1, 0x1, 0x0, 0x0, 0xc001, 0xc420200000)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:32 +0xe8\r\ngithub.com/jaytaylor/html2text.FromReader(0xba2ea0, 0xc420200000, 0xc4201f7f1d, 0x1, 0x1, 0xc000, 0x0, 0x0, 0x0)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:53 +0xce\r\ngithub.com/jaytaylor/html2text.FromString(0xc42061e000, 0xa046, 0xc4201f7f1d, 0x1, 0x1, 0x2, 0x0, 0xc4201f80b8, 0x4681d9)\r\n\t/var/www/clients/client6/web61/home/bot/go/src/github.com/jaytaylor/html2text/html2text.go:59 +0x12c\r\n```\r\n\r\nI'm assuming that the problem is mostly with [tablewriter](https://github.com/olekukonko/tablewriter/), and not with your package? My tables have some 50 rows and a dozen columns or so. I have not tried with smaller tables (there aren't any!)."},"comment":{"url":"https://api.github.com/repos/jaytaylor/html2text/issues/comments/320997686","html_url":"https://github.com/jaytaylor/html2text/issues/20#issuecomment-320997686","issue_url":"https://api.github.com/repos/jaytaylor/html2text/issues/20","id":320997686,"user":{"login":"jaytaylor","id":435652,"avatar_url":"https://avatars1.githubusercontent.com/u/435652?v=4","gravatar_id":"","url":"https://api.github.com/users/jaytaylor","html_url":"https://github.com/jaytaylor","followers_url":"https://api.github.com/users/jaytaylor/followers","following_url":"https://api.github.com/users/jaytaylor/following{/other_user}","gists_url":"https://api.github.com/users/jaytaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/jaytaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaytaylor/subscriptions","organizations_url":"https://api.github.com/users/jaytaylor/orgs","repos_url":"https://api.github.com/users/jaytaylor/repos","events_url":"https://api.github.com/users/jaytaylor/events{/privacy}","received_events_url":"https://api.github.com/users/jaytaylor/received_events","type":"User","site_admin":false},"created_at":"2017-08-08T15:47:22Z","updated_at":"2017-08-08T15:47:22Z","body":"I'm getting a page with only the text \"Snippet not found\"."}}
{"actor":{"display_login":"jaytaylor"}}