Skip to content

Commit 3fdc130

Browse files
J08nYDimitriPapadopoulos
authored andcommitted
Fix asciidoc alignment
Fixes astanin#256.
1 parent 74885be commit 3fdc130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabulate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def make_header_line(is_header, colwidths, colaligns):
259259
colwidths, [alignment[colalign] for colalign in colaligns]
260260
)
261261
asciidoc_column_specifiers = [
262-
f"{width:d}{align}" for width, align in asciidoc_alignments
262+
f"{align}{width:d}" for width, align in asciidoc_alignments
263263
]
264264
header_list = ['cols="' + (",".join(asciidoc_column_specifiers)) + '"']
265265

0 commit comments

Comments
 (0)