Title: Two improvements that should be done to the word wrapping logic in PowerShell formatting · Issue #26526 · PowerShell/PowerShell · GitHub
Open Graph Title: Two improvements that should be done to the word wrapping logic in PowerShell formatting · Issue #26526 · PowerShell/PowerShell
X Title: Two improvements that should be done to the word wrapping logic in PowerShell formatting · Issue #26526 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement There are 2 improvements that should be made to the word wrapping logic in PowerShell formatting: There are places where we check for "\x1b[0m" (reset) but no "\x1b[m" in files like ComplexWriter....
Open Graph Description: Summary of the new feature / enhancement There are 2 improvements that should be made to the word wrapping logic in PowerShell formatting: There are places where we check for "\x1b[0m" (reset) but ...
X Description: Summary of the new feature / enhancement There are 2 improvements that should be made to the word wrapping logic in PowerShell formatting: There are places where we check for "\x1b[0m" (r...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/26526
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two improvements that should be done to the word wrapping logic in PowerShell formatting","articleBody":"### Summary of the new feature / enhancement\n\nThere are 2 improvements that should be made to the word wrapping logic in PowerShell formatting:\n1. There are places where we check for `\"\\x1b[0m\"` (reset) but no `\"\\x1b[m\"` in files like `ComplexWriter.cs`, `ListWriter.cs` and more. (see https://github.com/PowerShell/PowerShell/pull/26424#discussion_r2557325720)\n2. The `GetWords(string)` implementation in `ComplexWriter.cs` doesn't handle consecutive spaces efficiently -- it breaks every space character into a word in this case, which has poor performance.\n\nWe should ideally address those 2 issues to make the word wrapping logic more robust and efficient.\n\n### Proposed technical implementation details (optional)\n\n_No response_","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2025-11-25T00:01:31Z","url":"https://github.com/PowerShell/PowerShell/issues/26526"}
| 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:fe51219a-b4b0-756d-742e-40967ecd5b7f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC98:238BBD:B89AF4:1097035:6AFDA9C2 |
| html-safe-nonce | a4f625e7da778199afbbe7d797793f006daf3f74622067ed8444fb91b5a0231c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzk4OjIzOEJCRDpCODlBRjQ6MTA5NzAzNTo2QUZEQTlDMiIsInZpc2l0b3JfaWQiOiI1MTA3MTI3MzA4MzE3OTkzNDEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 034b578d9bf52faa2f0069f0401db78b791f787f8596c9bcc1b295795b4d7eb2 |
| hovercard-subject-tag | issue:3660952582 |
| 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/PowerShell/PowerShell/26526/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9fadea8ab03c6a252506c0756541fb3a9732d83952894e992baf3b0928aed018/PowerShell/PowerShell/issues/26526 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9fadea8ab03c6a252506c0756541fb3a9732d83952894e992baf3b0928aed018/PowerShell/PowerShell/issues/26526 |
| og:image:alt | Summary of the new feature / enhancement There are 2 improvements that should be made to the word wrapping logic in PowerShell formatting: There are places where we check for "\x1b[0m" (reset) but ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width