Skip to content

Commit

Permalink
Fixed bug with single-number width and 'auto'
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpaulhudson committed Dec 5, 2021
1 parent 840cb70 commit 54ed176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasabi/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def row(
cols = []
if isinstance(aligns, basestring_): # single align value
aligns = [aligns for _ in data]
if not hasattr(widths, "__iter__"): # single number
if not hasattr(widths, "__iter__") and widths != "auto": # single number
widths = [widths for _ in range(len(data))]
for i, col in enumerate(data):
align = ALIGN_MAP.get(aligns[i] if aligns and i < len(aligns) else "l")
Expand Down

0 comments on commit 54ed176

Please sign in to comment.