René's URL Explorer Experiment


Title: don't strip whitespace when soft_wrap is True by willmcgugan · Pull Request #3937 · Textualize/rich · GitHub

Open Graph Title: don't strip whitespace when soft_wrap is True by willmcgugan · Pull Request #3937 · Textualize/rich

X Title: don't strip whitespace when soft_wrap is True by willmcgugan · Pull Request #3937 · Textualize/rich

Description: Rich is a Python library for rich text and beautiful formatting in the terminal. - don't strip whitespace when soft_wrap is True by willmcgugan · Pull Request #3937 · Textualize/rich

Open Graph Description: Fixes #3841

X Description: Fixes #3841

Opengraph URL: https://github.com/Textualize/rich/pull/3937

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e8134dc5-81cc-c223-d73b-261385ee7440
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5C8:268A18:A76199:EB425D:6A4BDF6F
html-safe-nonce280b55088b5c5878458b944db3b3935df321463ead0b261401a172fb6491c9f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM4OjI2OEExODpBNzYxOTk6RUI0MjVEOjZBNEJERjZGIiwidmlzaXRvcl9pZCI6IjY0NjA2MDMwMTUxNzQ1NDUyNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac98826327dd983baa3f27b8c89cdb4e6e6f45de73a6527b8d86ef8c9908e0bc59
hovercard-subject-tagpull_request:3203310538
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/Textualize/rich/3937/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ee6baa80e322cff4061fe1128184d70afff7dcf0aa3055e645f3c08c06ddf368/Textualize/rich/pull/3937
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee6baa80e322cff4061fe1128184d70afff7dcf0aa3055e645f3c08c06ddf368/Textualize/rich/pull/3937
og:image:altFixes #3841
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewillmcgugan
hostnamegithub.com
expected-hostnamegithub.com
None0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2
turbo-cache-controlno-cache
go-importgithub.com/Textualize/rich git https://github.com/Textualize/rich.git
octolytics-dimension-user_id93378883
octolytics-dimension-user_loginTextualize
octolytics-dimension-repository_id220809393
octolytics-dimension-repository_nwoTextualize/rich
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id220809393
octolytics-dimension-repository_network_root_nwoTextualize/rich
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release253920ac2dc35b0849cca4633895f1f2e5f03051
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Textualize/rich/pull/3937#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTextualize%2Frich%2Fpull%2F3937
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTextualize%2Frich%2Fpull%2F3937
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=Textualize%2Frich
Reloadhttps://github.com/Textualize/rich/pull/3937
Reloadhttps://github.com/Textualize/rich/pull/3937
Reloadhttps://github.com/Textualize/rich/pull/3937
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
Textualize https://github.com/Textualize
richhttps://github.com/Textualize/rich
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
Notifications https://github.com/login?return_to=%2FTextualize%2Frich
Fork 2.2k https://github.com/login?return_to=%2FTextualize%2Frich
Star 56.8k https://github.com/login?return_to=%2FTextualize%2Frich
Code https://github.com/Textualize/rich
Issues 225 https://github.com/Textualize/rich/issues
Pull requests 135 https://github.com/Textualize/rich/pulls
Discussions https://github.com/Textualize/rich/discussions
Actions https://github.com/Textualize/rich/actions
Projects https://github.com/Textualize/rich/projects
Security and quality 0 https://github.com/Textualize/rich/security
Insights https://github.com/Textualize/rich/pulse
Code https://github.com/Textualize/rich
Issues https://github.com/Textualize/rich/issues
Pull requests https://github.com/Textualize/rich/pulls
Discussions https://github.com/Textualize/rich/discussions
Actions https://github.com/Textualize/rich/actions
Projects https://github.com/Textualize/rich/projects
Security and quality https://github.com/Textualize/rich/security
Insights https://github.com/Textualize/rich/pulse
willmcguganhttps://github.com/willmcgugan
masterhttps://github.com/Textualize/rich/tree/master
trailing-whitespacehttps://github.com/Textualize/rich/tree/trailing-whitespace
Conversationhttps://github.com/Textualize/rich/pull/3937
Commits4 (4)https://github.com/Textualize/rich/pull/3937/commits
Checkshttps://github.com/Textualize/rich/pull/3937/checks
Files changedhttps://github.com/Textualize/rich/pull/3937/files
don't strip whitespace when soft_wrap is Truehttps://github.com/Textualize/rich/pull/3937#top
willmcguganhttps://github.com/willmcgugan
masterhttps://github.com/Textualize/rich/tree/master
trailing-whitespacehttps://github.com/Textualize/rich/tree/trailing-whitespace
https://github.com/willmcgugan
willmcguganhttps://github.com/willmcgugan
Jan 23, 2026https://github.com/Textualize/rich/pull/3937#issue-3847464413
#3841https://github.com/Textualize/rich/issues/3841
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
https://github.com/willmcgugan
don't strip whitespace when soft_wrap is Truehttps://github.com/Textualize/rich/pull/3937/commits/ba2806e7f472d6c8e0118ce143562594be7f747b
ba2806ehttps://github.com/Textualize/rich/pull/3937/commits/ba2806e7f472d6c8e0118ce143562594be7f747b
https://github.com/willmcgugan
willmcguganhttps://github.com/willmcgugan
Jan 23, 2026 https://github.com/Textualize/rich/pull/3937#ref-pullrequest-3391844023
Fixed Text.wrap trimming lines in no_wrap mode #3843 https://github.com/Textualize/rich/pull/3843
willmcguganhttps://github.com/willmcgugan
January 23, 2026 13:31https://github.com/Textualize/rich/pull/3937#commits-pushed-c2514fb
https://github.com/willmcgugan
typohttps://github.com/Textualize/rich/pull/3937/commits/c2514fb22c1bb3287a79b035c1b17b16183482b4
c2514fbhttps://github.com/Textualize/rich/pull/3937/commits/c2514fb22c1bb3287a79b035c1b17b16183482b4
https://github.com/willmcgugan
changeloghttps://github.com/Textualize/rich/pull/3937/commits/b9040928de20454342b58e9ecaabeba092b74626
b904092https://github.com/Textualize/rich/pull/3937/commits/b9040928de20454342b58e9ecaabeba092b74626
https://github.com/willmcgugan
changeloghttps://github.com/Textualize/rich/pull/3937/commits/4d0cbb74a8cc5c7dd9af3056499a43efbd13355a
4d0cbb7https://github.com/Textualize/rich/pull/3937/commits/4d0cbb74a8cc5c7dd9af3056499a43efbd13355a
https://github.com/codecov-commenter
codecov-commenterhttps://github.com/codecov-commenter
Jan 23, 2026https://github.com/Textualize/rich/pull/3937#issuecomment-3790285145
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
https://private-user-images.githubusercontent.com/152432831/340411587-e90313f4-9d3a-4b63-8b54-cfe14e7ec20d.svg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMzNTc1OTYsIm5iZiI6MTc4MzM1NzI5NiwicGF0aCI6Ii8xNTI0MzI4MzEvMzQwNDExNTg3LWU5MDMxM2Y0LTlkM2EtNGI2My04YjU0LWNmZTE0ZTdlYzIwZC5zdmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwNlQxNzAxMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZjUxODU4OTM0YTUyMzg1NDZmZjZmY2U5YjY1YmY1YzEyZTc3ZDhiOGQwYmIzNTA0MWI0MmI4MzJlZjQ1NzI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZzdmclMkJ4bWwifQ.e8NJ54kw66bGWYa75IB5u5fLYC2ocxPzjl3tzsp4mu4
Codecovhttps://app.codecov.io/gh/Textualize/rich/pull/3937?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
56855a6https://app.codecov.io/gh/Textualize/rich/commit/56855a6b81befafa6e978cffed4c1fb389a20df0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
4d0cbb7https://app.codecov.io/gh/Textualize/rich/commit/4d0cbb74a8cc5c7dd9af3056499a43efbd13355a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
Codecov GitHub apphttps://github.com/apps/codecov/installations/select_target
Flaghttps://app.codecov.io/gh/Textualize/rich/pull/3937/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
unittestshttps://app.codecov.io/gh/Textualize/rich/pull/3937/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/Textualize/rich/pull/3937?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None
Test Analyticshttps://docs.codecov.com/docs/test-analytics
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
https://github.com/willmcgugan
willmcguganhttps://github.com/willmcgugan
05ff970https://github.com/Textualize/rich/commit/05ff970926cbd0b5d0acb6fc18cdbd1fc971e582
Jan 23, 2026https://github.com/Textualize/rich/pull/3937#event-22243139561
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
https://github.com/willmcgugan
willmcguganhttps://github.com/willmcgugan
January 23, 2026 13:45https://github.com/Textualize/rich/pull/3937#event-22243139993
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
Jan 27, 2026 https://github.com/Textualize/rich/pull/3937#ref-issue-3862015141
[BUG] Table title always displays on the left when soft_wrap is True #3948 https://github.com/Textualize/rich/issues/3948
wingding12https://github.com/wingding12
Jan 30, 2026 https://github.com/Textualize/rich/pull/3937#ref-commit-f1c0df8
https://github.com/wingding12
Fix table title justification when soft_wrap=Truehttps://github.com/wingding12/rich/commit/f1c0df847569467aee95164469d7bebcd5285971
f1c0df8https://github.com/wingding12/rich/commit/f1c0df847569467aee95164469d7bebcd5285971
Textualize#3937https://github.com/Textualize/rich/pull/3937
Textualize#3948https://github.com/Textualize/rich/issues/3948
https://github.com/wingding12
wingding12https://github.com/wingding12
Jan 30, 2026 https://github.com/Textualize/rich/pull/3937#ref-pullrequest-3873592344
Fix table title justification when soft_wrap=True #3949 https://github.com/Textualize/rich/pull/3949
https://github.co/hiddenchars
https://github.com/Textualize/rich/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTextualize%2Frich%2Fpull%2F3937
[BUG] Trailing background color is trimmed when soft wrapping is enabled https://github.com/Textualize/rich/issues/3841
Please reload this pagehttps://github.com/Textualize/rich/pull/3937
https://github.com/willmcgugan
https://github.com/codecov-commenter
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.