From 37c1a1ff58a7a4ec7897c83ce62e5f3988dc716c Mon Sep 17 00:00:00 2001 From: inisis Date: Fri, 15 Dec 2023 14:42:57 +0800 Subject: [PATCH] fix bugs when cell has ansi --- tabulate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabulate/__init__.py b/tabulate/__init__.py index 11bb8655..2fd19b5e 100644 --- a/tabulate/__init__.py +++ b/tabulate/__init__.py @@ -1529,7 +1529,7 @@ def _wrap_text_to_colwidths(list_of_lists, colwidths, numparses=True): # Any future custom formatting of types (such as datetimes) # may need to be more explicit than just `str` of the object casted_cell = ( - str(cell) if _isnumber(cell) else _type(cell, numparse)(cell) + str(cell) if _isnumber(cell) else _type(cell, False, numparse)(cell) ) wrapped = [ "\n".join(wrapper.wrap(line))