python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

fix bugs when cell has ansi

Open inisis opened this issue 2 years ago • 1 comments

Hi, when maxcolwidths is set, and cell has ansi decorated, ValueError will be raised.
ValueError: invalid literal for int() with base 10: '\x1b[32m44\x1b[37m'

this pr helps fix it.

inisis avatar Dec 15 '23 06:12 inisis

This PR needs regression test cases to document what exactly it is trying to fix.

astanin avatar Sep 27 '24 09:09 astanin