mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in parsing LRF.
This commit is contained in:
parent
4432a279fb
commit
87dc7ffbd2
@ -620,6 +620,8 @@ class Text(LRFStream):
|
||||
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…
x
Reference in New Issue
Block a user