fix: wrap table cell content in Paragraph to parse XML markup
This commit is contained in:
@@ -183,7 +183,7 @@ class PianoPDF:
|
|||||||
return
|
return
|
||||||
table_data = []
|
table_data = []
|
||||||
for row in 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:
|
if table_data:
|
||||||
table = Table(table_data)
|
table = Table(table_data)
|
||||||
table.setStyle(self.table_style)
|
table.setStyle(self.table_style)
|
||||||
|
|||||||
Reference in New Issue
Block a user