fix: parse column alignment with regex

This commit is contained in:
Tim Grelka
2025-05-14 23:24:24 +02:00
parent 2fb3a66ce0
commit 1a8656428d
+1 -1
View File
@@ -18,7 +18,7 @@ class Table(BlockToken):
header = "| "
for column in columns:
attr, val = column.split(':')
attr, val = re.match(r"^ ?(?:([lcrX]):)?(.*)", column).group(1, 2)
alignment.append(attr)
header += val + " | "