mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +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)
|
||||
|
||||
if contained:
|
||||
# # 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
|
||||
# Sort contained clusters by minimum cell ID:
|
||||
contained = self._sort_clusters(contained, mode="id")
|
||||
special.children = contained
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user