René's URL Explorer Experiment


Title: Preserve later columns when wrapping ragged rows by pabszero · Pull Request #482 · astanin/python-tabulate · GitHub

Open Graph Title: Preserve later columns when wrapping ragged rows by pabszero · Pull Request #482 · astanin/python-tabulate

X Title: Preserve later columns when wrapping ragged rows by pabszero · Pull Request #482 · astanin/python-tabulate

Description: Supplying maxcolwidths can silently discard cells from rows that have more columns than the first data row: from tabulate import tabulate rows = [["A"], ["B", "keep"]] print(tabulate(rows, maxcolwidths=10)) Without wrapping, keep is present; with wrapping, the current code drops its entire column. An empty first data row can discard all columns. Determine the column count from the widest row in both width normalization and the wrapping helper. Add 13 regression/control cases for scalar/list widths, empty/short first rows, actual wrapping of later columns, first-row headers, and empty/uniform tables. Document the behavior. Validation on Windows CPython 3.12.14 and 3.13.5: Configured tox suites, including module and README doctests: 336 passed, 60 skipped per version. NumPy/pandas/wcwidth suites: 395 passed, 1 skipped per version. New tests against the original source: 10 failed, 3 passed; after the fix: all 13 passed. The pre-commit-pinned Ruff 0.15.4 check and format check passed. The unbounded tox lint environment installs Ruff 0.17.1 and reports the same 269 existing diagnostics on both base and patch, with no new diagnostics; that upstream lint issue remains outside this fix. Linux and other Python versions have not been run locally. Prepared with OpenAI Codex assistance.

Open Graph Description: Supplying maxcolwidths can silently discard cells from rows that have more columns than the first data row: from tabulate import tabulate rows = [["A"], ["B", "keep"]]...

X Description: Supplying maxcolwidths can silently discard cells from rows that have more columns than the first data row: from tabulate import tabulate rows = [["A"], ["B", &a...

Opengraph URL: https://github.com/astanin/python-tabulate/pull/482

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f19f259a-c39f-96e4-5da8-ad6fa6d6bf77
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE576:24FBF8:103BE36:170203C:6AFF080D
html-safe-noncebabcdb758457b43ae903fcec822f1a2a168af78da47431608c0ee474dab91883
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTc2OjI0RkJGODoxMDNCRTM2OjE3MDIwM0M6NkFGRjA4MEQiLCJ2aXNpdG9yX2lkIjoiMjM0MDAxOTU3NjU4NzU3MTMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac320eb2ba197be70bf4dda7db9fa180301f62ea7d006e90d52937adefc43f6dfe
hovercard-subject-tagpull_request:5005318921
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/astanin/python-tabulate/pull/482/files
twitter:imagehttps://avatars.githubusercontent.com/u/88653327?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/88653327?s=400&v=4
og:image:altSupplying maxcolwidths can silently discard cells from rows that have more columns than the first data row: from tabulate import tabulate rows = [["A"], ["B", "keep"]]...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee175723046b04f7f56d65eb0df6b02050aa2c8749bb60cf697165ebbe083484a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/astanin/python-tabulate git https://github.com/astanin/python-tabulate.git
octolytics-dimension-user_id71802
octolytics-dimension-user_loginastanin
octolytics-dimension-repository_id205875548
octolytics-dimension-repository_nwoastanin/python-tabulate
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id205875548
octolytics-dimension-repository_network_root_nwoastanin/python-tabulate
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3112cca354e0a8c46dced86aca04188cc1e9d46d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/astanin/python-tabulate/pull/482/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fastanin%2Fpython-tabulate%2Fpull%2F482%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fastanin%2Fpython-tabulate%2Fpull%2F482%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=astanin%2Fpython-tabulate
Reloadhttps://github.com/astanin/python-tabulate/pull/482/files
Reloadhttps://github.com/astanin/python-tabulate/pull/482/files
Reloadhttps://github.com/astanin/python-tabulate/pull/482/files
astaninhttps://github.com/astanin
python-tabulatehttps://github.com/astanin/python-tabulate
Codehttps://github.com/astanin/python-tabulate
Issues75 (75)https://github.com/astanin/python-tabulate/issues
Pull requests63 (63)https://github.com/astanin/python-tabulate/pulls
Actionshttps://github.com/astanin/python-tabulate/actions
Security and qualityhttps://github.com/astanin/python-tabulate/security
Insightshttps://github.com/astanin/python-tabulate/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fastanin%2Fpython-tabulate%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fastanin%2Fpython-tabulate%2Fissues%2Fnew%2Fchoose
pabszerohttps://github.com/pabszero
astanin:masterhttps://github.com/astanin/python-tabulate/tree/master
pabszero:fix-ragged-row-wrappinghttps://github.com/pabszero/python-tabulate/tree/fix-ragged-row-wrapping
Conversation 0 https://github.com/astanin/python-tabulate/pull/482
Commits 3 https://github.com/astanin/python-tabulate/pull/482/commits
Checks 0 https://github.com/astanin/python-tabulate/pull/482/checks
Files changed https://github.com/astanin/python-tabulate/pull/482/files
Please reload this pagehttps://github.com/astanin/python-tabulate/pull/482/files
Preserve later columns when wrapping ragged rows https://github.com/astanin/python-tabulate/pull/482/files#top
Show all changes 3 commits https://github.com/astanin/python-tabulate/pull/482/files
a429208 Preserve later columns when wrapping ragged rows pabszero Oct 22, 2026 https://github.com/astanin/python-tabulate/pull/482/commits/a4292086bfc25642b57d440bfd41862fe033d59f
5815919 Cover ragged rows with automatic wrapping pabszero Oct 22, 2026 https://github.com/astanin/python-tabulate/pull/482/commits/5815919aa60b74954d005b73606cec070e3f1cee
98ef489 Document wrapping rows with unequal column counts pabszero Oct 22, 2026 https://github.com/astanin/python-tabulate/pull/482/commits/98ef489f46bc67c5dbbb4b4b3adb8b10683980a0
Clear filters https://github.com/astanin/python-tabulate/pull/482/files
Please reload this pagehttps://github.com/astanin/python-tabulate/pull/482/files
Please reload this pagehttps://github.com/astanin/python-tabulate/pull/482/files
README.md https://github.com/astanin/python-tabulate/pull/482/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
__init__.py https://github.com/astanin/python-tabulate/pull/482/files#diff-b5f2661bdc46ea9938849b5fa6f2206616ff37423aedf58c6e8a9ba6ab4cd19f
test_ragged_wrapping.py https://github.com/astanin/python-tabulate/pull/482/files#diff-307fd39507f7992715de2a51c21993d2e36e4997aaddc6c922503ee35e99bc8b
README.mdhttps://github.com/astanin/python-tabulate/pull/482/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/astanin/python-tabulate/blob/98ef489f46bc67c5dbbb4b4b3adb8b10683980a0/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/astanin/python-tabulate/pull/482/{{ revealButtonHref }}
https://github.com/astanin/python-tabulate/pull/482/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/astanin/python-tabulate/pull/482/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
tabulate/__init__.pyhttps://github.com/astanin/python-tabulate/pull/482/files#diff-b5f2661bdc46ea9938849b5fa6f2206616ff37423aedf58c6e8a9ba6ab4cd19f
View file https://github.com/astanin/python-tabulate/blob/98ef489f46bc67c5dbbb4b4b3adb8b10683980a0/tabulate/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/astanin/python-tabulate/pull/482/{{ revealButtonHref }}
https://github.com/astanin/python-tabulate/pull/482/files#diff-b5f2661bdc46ea9938849b5fa6f2206616ff37423aedf58c6e8a9ba6ab4cd19f
https://github.com/astanin/python-tabulate/pull/482/files#diff-b5f2661bdc46ea9938849b5fa6f2206616ff37423aedf58c6e8a9ba6ab4cd19f
https://github.com/astanin/python-tabulate/pull/482/files#diff-b5f2661bdc46ea9938849b5fa6f2206616ff37423aedf58c6e8a9ba6ab4cd19f
https://github.com/astanin/python-tabulate/pull/482/files#diff-b5f2661bdc46ea9938849b5fa6f2206616ff37423aedf58c6e8a9ba6ab4cd19f
test/test_ragged_wrapping.pyhttps://github.com/astanin/python-tabulate/pull/482/files#diff-307fd39507f7992715de2a51c21993d2e36e4997aaddc6c922503ee35e99bc8b
View file https://github.com/astanin/python-tabulate/blob/98ef489f46bc67c5dbbb4b4b3adb8b10683980a0/test/test_ragged_wrapping.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/astanin/python-tabulate/pull/482/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.