fix identation error and correct function

This commit is contained in:
Savio Dsouza 2026-06-28 17:22:01 +05:30 committed by GitHub
parent 2d8a14fd32
commit ab23db0a9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -331,9 +331,9 @@ def _validate_chunk_physical_indices(toc: list, content: str) -> list:
if raw is None:
continue
m = _PHYSICAL_INDEX_MARKER_RE.match(str(raw).strip())
if not m or int(m.group(1)) not in valid_indices:
entry["physical_index"] = None
m = _PHYSICAL_INDEX_MARKER_RE.match(str(raw).strip())
if not m or int(m.group(1)) not in valid_indices:
entry["physical_index"] = None
return toc
@ -726,7 +726,7 @@ def process_no_toc(page_list, start_index=1, model=None, logger=None):
group_text
)
toc_with_page_number_additional = _validate_physical_indices(
toc_with_page_number_additional = _validate_chunk_physical_indices(
toc_with_page_number_additional,
len(page_list),
start_index