Skip to content

Commit f3788ad

Browse files
committed
minor
1 parent e0b4afe commit f3788ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/echo_services_markdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def generate_markdown_table(
3939
) -> str:
4040
title = ("Name", "Files", " ")
4141
num_cols = len(title)
42-
lines = ["-" * 10] * len(title)
42+
lines = ["-" * 10] * num_cols
4343

4444
def _to_row_data(values: Iterable) -> list[str]:
4545
row = list(map(str, values))
@@ -93,7 +93,7 @@ def _to_row_data(values: Iterable) -> list[str]:
9393
)
9494
)
9595
)
96-
rows.append(_to_row_data(["" * 10] * len(title)))
96+
rows.append(_to_row_data(["" * 10] * num_cols))
9797

9898
# converts to markdown table
9999
return "\n".join(f"| {'|'.join(r)} |" for r in rows)

0 commit comments

Comments
 (0)