Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tabulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def _isnumber_with_thousands_separator(string):
except (UnicodeDecodeError, AttributeError):
pass

return bool(re.match(_float_with_thousands_separators, string))
return bool(_float_with_thousands_separators.match(string))


def _isconvertible(conv, string):
Expand Down Expand Up @@ -1220,7 +1220,7 @@ def _align_column(
width_fn = _align_column_choose_width_fn(has_invisible, enable_widechars, is_multiline)

s_widths = list(map(width_fn, strings))
maxwidth = max(max(_flat_list(s_widths)), minwidth)
maxwidth = max(max(_flat_list(s_widths) if is_multiline else s_widths), minwidth)
# TODO: refactor column alignment in single-line and multiline modes
if is_multiline:
if not enable_widechars and not has_invisible:
Expand Down