page apnx algorithm to search for all tags with pagebreak in them.

This commit is contained in:
John Schember 2014-05-22 16:09:54 -04:00
parent ba61122d1f
commit 6ea252106e

View File

@ -280,7 +280,7 @@ class APNXBuilder(object):
mr.extract_text()
html = mr.mobi_html.lower()
for m in re.finditer('<\s*(mbp:)?pagebreak[^>]*>', html):
for m in re.finditer('<[^>]*pagebreak[^>]*>', html):
pages.append(m.end())
return pages