[BUG] Natively inserted ANSI escape sequence characters break alignment of Panel()
#3349
Closed
2 tasks done
Labels
Panel()
#3349
Describe the bug
A user encountered this in our repo: ewels/rich-click#192
A simplified version of the user's issue can be seen here:
The difference in the raw string length is 9, and the Panel is 7 characters too small:
plaintext:
The expected behavior was that Rich would exclude these ANSI escape characters from the padding, even though they did not come explicitly from Rich markup.
Platform
Platform: OSX Ventura 13.6, Apple M2 Max
Terminal: zsh inside PyCharm
The text was updated successfully, but these errors were encountered: