Commit 0911892
authored
fix: table HTML generation corrected (#355)
Currently unstructured-inference generates tables with missing markup:
```html
<table>
<thead> <!-- missing <tr> after <thead> -->
<th>header cell1</th>
<th>header cell2</th>
</thead>
<tr> <!-- would be nice to add <tbody> if <thead> is used -->
<td>body cell1</td>
<td>body cell2</td>
<tr>
<table>
```
When it should look like:
```html
<table>
<thead>
<tr>
<th>header cell1</th>
<th>header cell2</th>
</tr>
</thead>
<tbody>
<tr>
<td>body cell1</td>
<td>body cell2</td>
<tr>
</tbody>
<table>
```
Additionally, fixed `fill_cells` function which added redundant cells
that break the HTML table layout when spanned cells were found.1 parent 64cd41c commit 0911892
File tree
4 files changed
+579
-38
lines changed- test_unstructured_inference/models
- unstructured_inference
- models
4 files changed
+579
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
0 commit comments