Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/instructlab/sdg/utils/chunkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def get_table_page_number(self, json_book, idx):
"""
prev_page_num, next_page_num = None, None
for book_element in json_book["main-text"][idx - 1 :: -1]:
if "prov" in book_element:
if "prov" in book_element and book_element["prov"]:
prev_page_num = book_element["prov"][0]["page"]
break
for book_element in json_book["main-text"][idx:]:
Expand Down
Loading