mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix: add line breaks in table cells
Signed-off-by: George Fonseca <george.fons@gmail.com>
This commit is contained in:
parent
7c4c356e76
commit
a55f45f8e8
@ -339,7 +339,7 @@ class MsPowerpointDocumentBackend(DeclarativeDocumentBackend, PaginatedDocumentB
|
|||||||
col_span = int(col_span)
|
col_span = int(col_span)
|
||||||
|
|
||||||
icell = TableCell(
|
icell = TableCell(
|
||||||
text=cell.text.strip(),
|
text=cell.text.replace("\n", "<br>").strip(),
|
||||||
row_span=row_span,
|
row_span=row_span,
|
||||||
col_span=col_span,
|
col_span=col_span,
|
||||||
start_row_offset_idx=row_idx,
|
start_row_offset_idx=row_idx,
|
||||||
|
Loading…
Reference in New Issue
Block a user