Marthee commited on
Commit
cc0ae3f
·
verified ·
1 Parent(s): 7b38140

Update InitialMarkups.py

Browse files
Files changed (1) hide show
  1. InitialMarkups.py +1 -1
InitialMarkups.py CHANGED
@@ -109,7 +109,7 @@ def get_toc_page_numbers(doc, max_pages_to_check=15):
109
  # This covers the cover page, inside cover, and the TOC itself.
110
  if toc_pages:
111
  print('toccc',toc_pages)
112
- last_toc_page = toc_pages[-1]
113
  return list(range(0, last_toc_page + 1))
114
 
115
  return [] # Return empty list if nothing found
 
109
  # This covers the cover page, inside cover, and the TOC itself.
110
  if toc_pages:
111
  print('toccc',toc_pages)
112
+ last_toc_page = toc_pages[0]
113
  return list(range(0, last_toc_page + 1))
114
 
115
  return [] # Return empty list if nothing found