fix: wrap table cell content in Paragraph to parse XML markup

This commit is contained in:
hmo
2026-04-27 16:42:51 +08:00
parent 5a7629bea3
commit 7c35f4cac3
+1 -1
View File
@@ -183,7 +183,7 @@ class PianoPDF:
return
table_data = []
for row in data:
table_data.append([md_to_xml(str(cell)) if cell else "" for cell in row])
table_data.append([Paragraph(md_to_xml(str(cell)), self.body_style) if cell else "" for cell in row])
if table_data:
table = Table(table_data)
table.setStyle(self.table_style)