- Notifications
You must be signed in to change notification settings - Fork8.1k
Open
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 likeComplexWriter.cs,ListWriter.csand more. (seeFix formatting to properly handle theResetVT sequences that appear in the middle of a string #26424 (comment)) - The
GetWords(string)implementation inComplexWriter.csdoesn't handle consecutive spaces efficiently -- it breaks every space character into a word in this case, which has poor performance.
We should ideally address those 2 issues to make the word wrapping logic more robust and efficient.
Proposed technical implementation details (optional)
No response