Skip to content

Commit 640b75c

Browse files
committed
ready to review
1 parent 4a07fbd commit 640b75c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.8-dev1
2+
3+
* Enhancement: Optimized cells_to_html (codeflash)
4+
15
## 1.0.7
26

37
* Fix a hardcoded file extension causing confusion in the logs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.7" # pragma: no cover
1+
__version__ = "1.0.8-dev1" # pragma: no cover

unstructured_inference/models/tables.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -706,12 +706,14 @@ def fill_cells(cells: List[dict]) -> List[dict]:
706706
for row in range(max_row + 1):
707707
for col in range(max_col + 1):
708708
if (row, col) not in filled:
709-
new_cells.append({
710-
"row_nums": [row],
711-
"column_nums": [col],
712-
"cell text": "",
713-
"column header": row in header_rows,
714-
})
709+
new_cells.append(
710+
{
711+
"row_nums": [row],
712+
"column_nums": [col],
713+
"cell text": "",
714+
"column header": row in header_rows,
715+
}
716+
)
715717
return new_cells
716718

717719

0 commit comments

Comments
 (0)