fix model table cell text alignment (#14999)

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2022-01-10 12:44:11 +01:00
committed by GitHub
parent d72343d2b8
commit 0a03a86813
2 changed files with 3 additions and 2 deletions

View File

@@ -140,7 +140,8 @@ def get_model_table_from_auto_modules():
# Build the table per se
table = "|" + "|".join([_center_text(c, w) for c, w in zip(columns, widths)]) + "|\n"
table += "|" + "|".join(["-" * w for w in widths]) + "|\n"
# Use ":-----:" format to center-aligned table cell texts
table += "|" + "|".join([":" + "-" * (w - 2) + ":" for w in widths]) + "|\n"
check = {True: "", False: ""}
for name in model_names: