Skip to content

Commit

Permalink
Dedup page numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
VikParuchuri committed Nov 20, 2024
1 parent 744e02f commit bf9199f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions marker/v2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ def parse_range_str(range_str: str) -> List[int]:
page_lst += list(range(int(start), int(end) + 1))
else:
page_lst.append(int(i))
page_lst = sorted(list(set(page_lst))) # Deduplicate page numbers and sort in order
return page_lst

0 comments on commit bf9199f

Please sign in to comment.