Skip to content

fix: honor disable_numparse when wrapping thousands-separated cells - #449

Open
BlocksecPHD wants to merge 1 commit into
astanin:masterfrom
BlocksecPHD:fix/maxcolwidths-numparse-thousands
Open

fix: honor disable_numparse when wrapping thousands-separated cells#449
BlocksecPHD wants to merge 1 commit into
astanin:masterfrom
BlocksecPHD:fix/maxcolwidths-numparse-thousands

Conversation

@BlocksecPHD

Copy link
Copy Markdown

Summary

Test plan

  • pytest on Python 3.11: 325 passed, 60 skipped
  • New regression tests for wrapping 100,120 with and without disable_numparse=True

_wrap_text_to_colwidths passed numparse as the has_invisible argument of
_type, so disable_numparse was ignored. Combined with int() on strings
like "100,120", wrapping raised ValueError (github issue astanin#448).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

problem in tabulate 0.10.0 on python 3.11.12 with cell values like "100,120"

1 participant