Title: Grid formats silently drop data rows after multiple separating lines · Issue #508 · astanin/python-tabulate · GitHub
Open Graph Title: Grid formats silently drop data rows after multiple separating lines · Issue #508 · astanin/python-tabulate
X Title: Grid formats silently drop data rows after multiple separating lines · Issue #508 · astanin/python-tabulate
Description: Reproduced on 0.10.0 and current master (268615a), Python 3.12.16/Linux: from tabulate import SEPARATING_LINE, tabulate rows = [['A'], SEPARATING_LINE, ['B'], SEPARATING_LINE, ['C'], ['D']] print(tabulate(rows, tablefmt='grid')) The outp...
Open Graph Description: Reproduced on 0.10.0 and current master (268615a), Python 3.12.16/Linux: from tabulate import SEPARATING_LINE, tabulate rows = [['A'], SEPARATING_LINE, ['B'], SEPARATING_LINE, ['C'], ['D']] print(t...
X Description: Reproduced on 0.10.0 and current master (268615a), Python 3.12.16/Linux: from tabulate import SEPARATING_LINE, tabulate rows = [['A'], SEPARATING_LINE, ['B'], SEPARATING_LINE, ['...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/508
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Grid formats silently drop data rows after multiple separating lines","articleBody":"Reproduced on 0.10.0 and current master (268615a), Python 3.12.16/Linux:\n\n```python\nfrom tabulate import SEPARATING_LINE, tabulate\n\nrows = [['A'], SEPARATING_LINE, ['B'], SEPARATING_LINE, ['C'], ['D']]\nprint(tabulate(rows, tablefmt='grid'))\n```\n\nThe output contains A, B and D, but silently drops C. `fancy_grid` does the same; `simple` preserves all four data rows.\n\n`rowaligns` is sized before separators are reinserted. The grid branch then zips it with the longer row list, so iteration ends early. Separator rows also consume alignments intended for data rows.\n\nI checked the open PRs and both pages of separating-line search results. This differs from #328's already-fixed extra-row rendering, #465/#470's index validation, and #452's nongrid alignment path.\n\nI'd like to fix the grid iteration so separators do not consume data-row alignments, with regression tests for row preservation and multiline alignment. AI-assisted investigation and tests.","author":{"url":"https://github.com/OnlineBunker","@type":"Person","name":"OnlineBunker"},"datePublished":"2026-11-17T12:08:31Z","url":"https://github.com/astanin/python-tabulate/issues/508"}
| 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:0feb436b-0395-5fdb-1e29-7ef72dc5812d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA54:177CE1:173D54:1FD09F:6AFF20E4 |
| html-safe-nonce | c0fc0369139697e7b4bb7fb594844bd4c85ff2b297f6e0e7d08b2aa3dfe3cca6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTU0OjE3N0NFMToxNzNENTQ6MUZEMDlGOjZBRkYyMEU0IiwidmlzaXRvcl9pZCI6Ijk1NDA4OTYzMzI3MDkzMTY4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2af16c76dce3d4cbb659f08ad872cfd404e454498186b253da310188d1ab93ae |
| hovercard-subject-tag | issue:6444186579 |
| 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/508/issue_layout |
| twitter:image | https://opengraph.githubassets.com/064882cb6bf6ad3ade42ea326d4756bed784a4868e75206d6326a30745d18cc9/astanin/python-tabulate/issues/508 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/064882cb6bf6ad3ade42ea326d4756bed784a4868e75206d6326a30745d18cc9/astanin/python-tabulate/issues/508 |
| og:image:alt | Reproduced on 0.10.0 and current master (268615a), Python 3.12.16/Linux: from tabulate import SEPARATING_LINE, tabulate rows = [['A'], SEPARATING_LINE, ['B'], SEPARATING_LINE, ['C'], ['D']] print(t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OnlineBunker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 09f89b47d4ae91bc6625123d192f4df7ef49aee8b33380c1e126c49d89e5ea83 |
| 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 | a83af9755c14340f81939fad707c94b944f8296c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width