You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since title width is currently computed using len, zero-width characters in the title contribute to table width. _str_block_width removes some escape codes before calculating width and returns a more appropriate value. I propose replace len(options["title"]) with _str_block_width(options["title"]).
The text was updated successfully, but these errors were encountered:
prettytable/src/prettytable/prettytable.py
Line 1572 in db4a1e3
Since title width is currently computed using
len
, zero-width characters in the title contribute to table width._str_block_width
removes some escape codes before calculating width and returns a more appropriate value. I propose replacelen(options["title"])
with_str_block_width(options["title"])
.The text was updated successfully, but these errors were encountered: