Skip to content

Commit 0911892

Browse files
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

4 files changed

+579
-38
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.7.35
2+
Fix syntax for generated HTML tables
3+
14
## 0.7.34
25

36
* Reduce excessive logging

0 commit comments

Comments
 (0)