docling-project / docling-project/docling

Bug: Incorrect Merging of Subheaders with Header in Tables

Open
#527 1 comment 0 reactions 1 assignee Claimed by @maxmnemonic View on GitHub
bug layout triage/close-stale
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug
In tables with multiple subheaders under a header, the subheaders are incorrectly merged with the header.

### Steps to reproduce
Parse this PDF:
[test-docling-parser-16.pdf](https://github.com/user-attachments/files/18035053/test-docling-parser-16.pdf)

_**This issue occurs with both the accurate and fast table modes.**_

### Screenshots:

**Original Table in PDF:**
**![image](https://github.com/user-attachments/assets/43f9010a-cf96-4b36-819d-5a5ecdc2b841)**

**Parsed Table:**
![image](https://github.com/user-attachments/assets/89c24968-56ca-4065-a832-0cd9fd22e4de)

### Docling version
- Docling version: 2.8.3
- Docling Core version: 2.7.0
- Docling IBM Models version: 2.0.7
- Docling Parse version: 2.1.2

### Python version
Python 3.11.8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.