From 8781674ced888e010be40b7ee50aa7dc29d1fba6 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 19 Oct 2023 13:09:56 +0200 Subject: [PATCH] Fix colalign in HTML when default is right. --- tabulate/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabulate/__init__.py b/tabulate/__init__.py index 11bb865..1a6c586 100644 --- a/tabulate/__init__.py +++ b/tabulate/__init__.py @@ -164,7 +164,7 @@ def _html_begin_table_without_header(colwidths_ignore, colaligns_ignore): def _html_row_with_attrs(celltag, unsafe, cell_values, colwidths, colaligns): alignment = { - "left": "", + "left": ' style="text-align: left;"', "right": ' style="text-align: right;"', "center": ' style="text-align: center;"', "decimal": ' style="text-align: right;"', @@ -187,7 +187,7 @@ def _html_row_with_attrs(celltag, unsafe, cell_values, colwidths, colaligns): def _moin_row_with_attrs(celltag, cell_values, colwidths, colaligns, header=""): alignment = { - "left": "", + "left": ' style="text-align: left;"', "right": '', "center": '', "decimal": '',