mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 07:22:14 +00:00
Comment cleanup
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
parent
2c2026d3d2
commit
7649ba7a76
@ -328,16 +328,7 @@ class LayoutPostprocessor:
|
|||||||
contained.append(cluster)
|
contained.append(cluster)
|
||||||
|
|
||||||
if contained:
|
if contained:
|
||||||
# # Sort contained clusters by minimum cell ID:
|
# Sort contained clusters by minimum cell ID:
|
||||||
# contained.sort(
|
|
||||||
# key=lambda cluster: (
|
|
||||||
# min(cell.id for cell in cluster.cells)
|
|
||||||
# if cluster.cells
|
|
||||||
# else sys.maxsize
|
|
||||||
# )
|
|
||||||
# )
|
|
||||||
|
|
||||||
# Sort contained clusters left-to-right, top-to-bottom
|
|
||||||
contained = self._sort_clusters(contained, mode="id")
|
contained = self._sort_clusters(contained, mode="id")
|
||||||
special.children = contained
|
special.children = contained
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user