Skip to content

Commit

Permalink
refactor: auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Jan 30, 2024
1 parent 5411f44 commit f4e0c4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/md_to_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def _pad_columns(row: str, widths: tuple[int, ...] | int, delimiter: str = "|")
f"{non_space_len}, is {widths[column]}"
)
change_amount = widths[column] - non_space_len - backward_count + 2
for index in range(prev_delimiter_index, prev_delimiter_index + non_space_len + 1):
for index in range(
prev_delimiter_index, prev_delimiter_index + non_space_len + 1
):
new_row += row[index]
if change_amount > 0:
new_row += " " * change_amount
Expand Down

0 comments on commit f4e0c4c

Please sign in to comment.