Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 21, 2024
1 parent e0b4afe commit f3788ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/echo_services_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def generate_markdown_table(
) -> str:
title = ("Name", "Files", " ")
num_cols = len(title)
lines = ["-" * 10] * len(title)
lines = ["-" * 10] * num_cols

def _to_row_data(values: Iterable) -> list[str]:
row = list(map(str, values))
Expand Down Expand Up @@ -93,7 +93,7 @@ def _to_row_data(values: Iterable) -> list[str]:
)
)
)
rows.append(_to_row_data(["" * 10] * len(title)))
rows.append(_to_row_data(["" * 10] * num_cols))

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

0 comments on commit f3788ad

Please sign in to comment.