mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
fix(html): prevent hierarchy reset in rich table cells (#2716)
* fix(html): restore parents after rich cell walking Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com> * fix(html): add table cell context manager, update tests Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com> * fix(html): table with heading test data Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com> --------- Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com>
This commit is contained in:
23
tests/data/html/table_with_heading_01.html
vendored
Normal file
23
tests/data/html/table_with_heading_01.html
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
table, th, td {border: 1px solid black; border-collapse: collapse;}
|
||||
td {padding:30px;}
|
||||
table {margin: 30px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Before tha table</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td><h1>A</h1></td>
|
||||
<td>B</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1...</td>
|
||||
<td>2...</td>
|
||||
</tr>
|
||||
</table>
|
||||
After the table
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user