Title: [bug] Error if trying to render a table with no rows using maxcolwidths · Issue #315 · astanin/python-tabulate · GitHub
Open Graph Title: [bug] Error if trying to render a table with no rows using maxcolwidths · Issue #315 · astanin/python-tabulate
X Title: [bug] Error if trying to render a table with no rows using maxcolwidths · Issue #315 · astanin/python-tabulate
Description: With tabulate==0.9.0 This code fails: print(tabulate({'x': []}, headers="keys", maxcolwidths=100)) Expected behaviour: Without data, it should render the table as with: print(tabulate({'x': []}, headers="keys"))
Open Graph Description: With tabulate==0.9.0 This code fails: print(tabulate({'x': []}, headers="keys", maxcolwidths=100)) Expected behaviour: Without data, it should render the table as with: print(tabulate({'x': []}, he...
X Description: With tabulate==0.9.0 This code fails: print(tabulate({'x': []}, headers="keys", maxcolwidths=100)) Expected behaviour: Without data, it should render the table as with: print(tabu...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/315
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[bug] Error if trying to render a table with no rows using maxcolwidths","articleBody":"With `tabulate==0.9.0`\r\n\r\nThis code fails:\r\n\r\n```\r\nprint(tabulate({'x': []}, headers=\"keys\", maxcolwidths=100))\r\n```\r\n\r\nExpected behaviour:\r\n\r\nWithout data, it should render the table as with:\r\n```\r\nprint(tabulate({'x': []}, headers=\"keys\"))\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/elehcimd","@type":"Person","name":"elehcimd"},"datePublished":"2024-03-04T09:59:44Z","url":"https://github.com/astanin/python-tabulate/issues/315"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f93d8c54-8470-2d76-95fd-e29adc8245d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8716:2CB30A:133753:1A6142:6AFF3F90 |
| html-safe-nonce | 22874d37b2608606c2f95aa4153be806f5d9b5a8d49fdd6ad309a59481481130 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzE2OjJDQjMwQToxMzM3NTM6MUE2MTQyOjZBRkYzRjkwIiwidmlzaXRvcl9pZCI6Ijc4NTc1MTcwNjM1MDg1NDEzMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ff1d625d0a27a7d4aff45552a9ce5345070d1baf6e96b4f4afc9f42842e17e30 |
| hovercard-subject-tag | issue:2166437535 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/astanin/python-tabulate/315/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69f4ba84484af63cad54b36c50a537fff59bf5787238aca386d34d2dcf43c18a/astanin/python-tabulate/issues/315 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69f4ba84484af63cad54b36c50a537fff59bf5787238aca386d34d2dcf43c18a/astanin/python-tabulate/issues/315 |
| og:image:alt | With tabulate==0.9.0 This code fails: print(tabulate({'x': []}, headers="keys", maxcolwidths=100)) Expected behaviour: Without data, it should render the table as with: print(tabulate({'x': []}, he... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | elehcimd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 07f40d184b74ca701a2005d4a164bf7038be26fc145c2623336a91fe477cc584 |
| turbo-cache-control | no-preview |
| go-import | github.com/astanin/python-tabulate git https://github.com/astanin/python-tabulate.git |
| octolytics-dimension-user_id | 71802 |
| octolytics-dimension-user_login | astanin |
| octolytics-dimension-repository_id | 205875548 |
| octolytics-dimension-repository_nwo | astanin/python-tabulate |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205875548 |
| octolytics-dimension-repository_network_root_nwo | astanin/python-tabulate |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8e428a801c2dccf4d1f411040a0e0b7fab7d4061 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width