mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:14:33 +02:00
Make page break insertion a little more sensitive.
This commit is contained in:
parent
abbb49bb39
commit
2899de0d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -1012,7 +1012,7 @@ def process_page_breaks(self, tag, tagname, tag_css):
|
|||
if not self.page_break_found and self.page_break.match(tagname):
|
||||
number_of_paragraphs = sum([
|
||||
len([1 for i in block.contents if isinstance(i, Paragraph)])
|
||||
for block in self.current_page.contents is isinstance(block, TextBlock)
|
||||
for block in self.current_page.contents if isinstance(block, TextBlock)
|
||||
])
|
||||
|
||||
if number_of_paragraphs > 2:
|
||||
|
|
|
|||
Loading…
Reference in a new issue