mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 16:56:15 +01:00
build_table: Convert all items to strings so we can also pass other types
This commit is contained in:
parent
85d86249d4
commit
af7d3900cf
@ -7266,6 +7266,9 @@ def build_table(col_num, data=None, headline=None, width=1, csv=False):
|
||||
longest_col.append(0)
|
||||
if headline and not csv:
|
||||
data[0:0] = headline
|
||||
|
||||
data = [str(i) for i in data]
|
||||
|
||||
# find longest entry in each column
|
||||
i = 0
|
||||
for itm in data:
|
||||
|
Loading…
Reference in New Issue
Block a user