mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 20:26:12 +01:00
Fix bug in parsing LRF.
This commit is contained in:
parent
4432a279fb
commit
87dc7ffbd2
1 changed files with 2 additions and 0 deletions
|
|
@ -620,6 +620,8 @@ def start_para(self, tag, stream):
|
|||
self.content.append(self.__class__.TextTag('P'))
|
||||
|
||||
def close_containers(self, start=0):
|
||||
if len(self.content) == 0:
|
||||
return
|
||||
open_containers = 0
|
||||
if len(self.content) > 0 and isinstance(self.content[-1], self.__class__.Span):
|
||||
self.content.pop()
|
||||
|
|
|
|||
Loading…
Reference in a new issue