fix table generate
This commit is contained in:
parent
e9a5b0ee51
commit
d64621aa73
@ -18,10 +18,10 @@ class MarkdownTable:
|
||||
self.rows.append(row_data)
|
||||
|
||||
def __str__(self):
|
||||
table = "| "
|
||||
table = "|"
|
||||
|
||||
for header in self.headers:
|
||||
table += "{} | ".format(header)
|
||||
table += " {} |".format(header)
|
||||
|
||||
table += "\n"
|
||||
|
||||
@ -30,6 +30,6 @@ class MarkdownTable:
|
||||
|
||||
for row in self.rows:
|
||||
table += "\n"
|
||||
table += " | ".join(row)
|
||||
table += " | ".join(map(str, row))
|
||||
|
||||
return table
|
||||
|
Loading…
x
Reference in New Issue
Block a user