mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-05 22:24:12 +01:00
page apnx algorithm to search for all tags with pagebreak in them.
This commit is contained in:
parent
ba61122d1f
commit
6ea252106e
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ def get_pages_pagebreak_tag(self, mobi_file_path):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue