wip
This commit is contained in:
parent
e3af4bc0d8
commit
853e06b738
@ -16,8 +16,10 @@ def create_markdown_table(results):
|
|||||||
rows = []
|
rows = []
|
||||||
for result in results:
|
for result in results:
|
||||||
name = result['name']
|
name = result['name']
|
||||||
base = result['base'].replace('\n', '<br/>')
|
base = result['base'] or ''
|
||||||
pr = result['pr'].replace('\n', '<br/>')
|
base = base.replace('\n', '<br/>')
|
||||||
|
pr = result['pr'] or ''
|
||||||
|
pr = pr.replace('\n', '<br/>')
|
||||||
row = f"| {name} | {base} | {pr} |"
|
row = f"| {name} | {base} | {pr} |"
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
return f"{header}\n" + "\n".join(rows)
|
return f"{header}\n" + "\n".join(rows)
|
||||||
|
Loading…
Reference in New Issue
Block a user