We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e249d commit b6c26eeCopy full SHA for b6c26ee
pphtml.py
@@ -484,10 +484,10 @@ def findPageRanges(self):
484
pages_arabic = []
485
pages_roman = []
486
487
- # Look for <a> or <div> with 'id' attribute; \3 is the match
488
- pat1 = re.compile(r"""<(a|div)\s+[^>]*\bid=["'](page|pg)_?([\divxlcdm]+)["']""",
+ # Look for <a>, <div>, <span> with 'id' attribute; \3 is the match
+ pat1 = re.compile(r"""<(a|div|span)\s+[^>]*\bid=["'](page|pg)_?([\divxlcdm]+)["']""",
489
re.IGNORECASE)
490
- # Look for span class=pagenum; \1 is the match
+ # Alternately: look for span class=pagenum; \1 is the match
491
pat2 = re.compile(r"""<span\s+[^>]*\bclass=["']pagenum['"].*>([^<]+)</span""",
492
493
0 commit comments