1
0
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:
Daniel Mach 2022-12-15 10:30:04 +01:00
parent 85d86249d4
commit af7d3900cf

View File

@ -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: