We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b4afe commit f3788adCopy full SHA for f3788ad
scripts/echo_services_markdown.py
@@ -39,7 +39,7 @@ def generate_markdown_table(
39
) -> str:
40
title = ("Name", "Files", " ")
41
num_cols = len(title)
42
- lines = ["-" * 10] * len(title)
+ lines = ["-" * 10] * num_cols
43
44
def _to_row_data(values: Iterable) -> list[str]:
45
row = list(map(str, values))
@@ -93,7 +93,7 @@ def _to_row_data(values: Iterable) -> list[str]:
93
)
94
95
96
- rows.append(_to_row_data(["" * 10] * len(title)))
+ rows.append(_to_row_data(["" * 10] * num_cols))
97
98
# converts to markdown table
99
return "\n".join(f"| {'|'.join(r)} |" for r in rows)
0 commit comments