fix: add line breaks in table cells

Signed-off-by: George Fonseca <george.fons@gmail.com>
This commit is contained in:
George Fonseca 2025-05-16 14:45:44 -03:00 committed by George Fonseca
parent 7c4c356e76
commit a55f45f8e8

View File

@ -339,7 +339,7 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
col_span = int(col_span)
icell = TableCell(
text=cell.text.strip(),
text=cell.text.replace("\n", "<br>").strip(),
row_span=row_span,
col_span=col_span,
start_row_offset_idx=row_idx,