Title: Header alignment overrides unexpectedly change HTML body cell alignment · Issue #476 · astanin/python-tabulate · GitHub
Open Graph Title: Header alignment overrides unexpectedly change HTML body cell alignment · Issue #476 · astanin/python-tabulate
X Title: Header alignment overrides unexpectedly change HTML body cell alignment · Issue #476 · astanin/python-tabulate
Description: On unchanged upstream 268615a, tabulate([["item", 42]], headers=["Label", "Value"], tablefmt="html", headersalign=("center", "left")) changes the td styles to center/left as well as changing the th styles. Without the header-only overrid...
Open Graph Description: On unchanged upstream 268615a, tabulate([["item", 42]], headers=["Label", "Value"], tablefmt="html", headersalign=("center", "left")) changes the td styles to center/left as well as changing the th...
X Description: On unchanged upstream 268615a, tabulate([["item", 42]], headers=["Label", "Value"], tablefmt="html", headersalign=("center", "left")) cha...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Header alignment overrides unexpectedly change HTML body cell alignment","articleBody":"On unchanged upstream 268615a5c27dc40e5c22454c07b44d5c50410da0, tabulate([[\"item\", 42]], headers=[\"Label\", \"Value\"], tablefmt=\"html\", headersalign=(\"center\", \"left\")) changes the td styles to center/left as well as changing the th styles. Without the header-only override, the data cells correctly use left/right. headersalign is documented as a header-specific override, so numeric data should remain right-aligned and explicit colalign should remain honored. The fallback header alignment aliases the data alignment list and then mutates it. Six regression cases fail before the change; ten controls with independent global header alignment or already matching data styles pass. A copy of that list keeps the existing formatting but separates the two states. Investigated with AI assistance; no personal account-owner review or attestation is asserted.","author":{"url":"https://github.com/nawaaaaaAaar","@type":"Person","name":"nawaaaaaAaar"},"datePublished":"2026-10-22T12:28:06Z","url":"https://github.com/astanin/python-tabulate/issues/476"}
| 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:b9c9344f-12d3-c05f-cc7b-fe70f8f3cba5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C136:12DDCC:7C513F:ADFB3F:6AFF3CC2 |
| html-safe-nonce | 099b5962521886fca5b795ac58dd5b795f529f11be836b5c186ccbca895803eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTM2OjEyRERDQzo3QzUxM0Y6QURGQjNGOjZBRkYzQ0MyIiwidmlzaXRvcl9pZCI6IjYyNjIwNzQ4OTUwMjczNTQ4MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a7fb7c9bbf32f1b72d6411db6d65e6e3ee3ea3cf567a996a5370d840732d31dd |
| hovercard-subject-tag | issue:5979289959 |
| 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/476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ebf0e6f8d95bfea2a5029fc1dbada5b98fcaabc1d57b8aad61ae70b264ee2118/astanin/python-tabulate/issues/476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ebf0e6f8d95bfea2a5029fc1dbada5b98fcaabc1d57b8aad61ae70b264ee2118/astanin/python-tabulate/issues/476 |
| og:image:alt | On unchanged upstream 268615a, tabulate([["item", 42]], headers=["Label", "Value"], tablefmt="html", headersalign=("center", "left")) changes the td styles to center/left as well as changing the th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nawaaaaaAaar |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width