From 4e332500a8f3788ba3cba3aa7f79388df370f7b9 Mon Sep 17 00:00:00 2001 From: Michele Dolfi Date: Thu, 19 Jun 2025 09:12:08 +0200 Subject: [PATCH] add table raw cells when no table structure model was used Signed-off-by: Michele Dolfi --- docling/models/readingorder_model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docling/models/readingorder_model.py b/docling/models/readingorder_model.py index ba1bb45b..c9f7241e 100644 --- a/docling/models/readingorder_model.py +++ b/docling/models/readingorder_model.py @@ -226,6 +226,9 @@ class ReadingOrderModel: tbl.footnotes.append(new_footnote_item.get_ref()) + if tbl.data.num_rows == 0 and tbl.data.num_cols == 0: + self._add_child_elements(element, tbl, out_doc) + # TODO: Consider adding children of Table. elif isinstance(element, FigureElement):