mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
cleanup.
This commit is contained in:
parent
95de323d1e
commit
f95eead55c
@ -1203,11 +1203,7 @@ class HTMLConverter(object):
|
|||||||
target = self.book.create_text_block(textStyle=self.current_block.textStyle,
|
target = self.book.create_text_block(textStyle=self.current_block.textStyle,
|
||||||
blockStyle=self.current_block.blockStyle)
|
blockStyle=self.current_block.blockStyle)
|
||||||
self.targets[tag['id']] = target
|
self.targets[tag['id']] = target
|
||||||
self.current_para.append_to(self.current_block)
|
self.end_current_block()
|
||||||
self.current_para = Paragraph()
|
|
||||||
self.current_block.append_to(self.current_page)
|
|
||||||
self.current_block = self.book.create_text_block(textStyle=self.current_block.textStyle,
|
|
||||||
blockStyle=self.current_block.blockStyle)
|
|
||||||
self.current_page.append(target)
|
self.current_page.append(target)
|
||||||
src = self.get_text(tag, limit=1000)
|
src = self.get_text(tag, limit=1000)
|
||||||
if not self.disable_chapter_detection and tagname.startswith('h'):
|
if not self.disable_chapter_detection and tagname.startswith('h'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user