Commit 5437a37
committed
Honor disable_numparse on the maxcolwidths wrap path
In _wrap_text_to_colwidths, the per-cell numparse flag was passed
positionally to _type() as the has_invisible argument:
_type(cell, numparse)
so _type() always used its default numparse=True. A number-ish but
unparseable cell (e.g. '80,443') was then cast to int and crashed with
ValueError, but only when maxcolwidths triggered the wrap path -- the
non-wrap path honored disable_numparse correctly.
Pass numparse as a keyword argument. This restores the fix from #362
(regression of #305 / #428).
Fixes #4281 parent 268615a commit 5437a37
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
534 | 544 | | |
535 | 545 | | |
536 | 546 | | |
| |||
0 commit comments