From f518718263258cd2b3dd19febcee964360a2c408 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 19 Oct 2023 13:10:57 +0200 Subject: [PATCH] Fix asciidoc alignment. Fixes #256. --- tabulate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabulate/__init__.py b/tabulate/__init__.py index 11bb865..03eb3c3 100644 --- a/tabulate/__init__.py +++ b/tabulate/__init__.py @@ -224,7 +224,7 @@ def make_header_line(is_header, colwidths, colaligns): colwidths, [alignment[colalign] for colalign in colaligns] ) asciidoc_column_specifiers = [ - "{:d}{}".format(width, align) for width, align in asciidoc_alignments + "{}{:d}".format(align, width) for width, align in asciidoc_alignments ] header_list = ['cols="' + (",".join(asciidoc_column_specifiers)) + '"']