Skip to content

Commit 457ea01

Browse files
committed
fix(_table_to_text): ValueError
ValueError: '=' alignment not allowed in string format specifier The syntax was not valid in py<3.10. See: https://stackoverflow.com/questions/36044676/
1 parent d6d4dee commit 457ea01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wikitextparser/_wikitext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _table_to_text(t: 'Table') -> str:
159159
for ri, d in enumerate(row[:-1]):
160160
widths[ri] = max(widths[ri], wcswidth(d))
161161
return '\n' + '\n'.join('\t'.join(
162-
f'{d:{w}}' for (w, d) in zip(widths, r)
162+
f'{d:<{w}}' for (w, d) in zip(widths, r)
163163
) for r in data) + '\n'
164164

165165

0 commit comments

Comments
 (0)