Spaces:
Runtime error
Runtime error
Update InitialMarkups.py
Browse files- 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[
|
| 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
|