python-tabulate
python-tabulate copied to clipboard
fix bugs when cell has ansi
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.
This PR needs regression test cases to document what exactly it is trying to fix.