mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-06 08:53:40 -05:00
Fix handling of EmpLine in lrf2lrs
This commit is contained in:
parent
60263f3643
commit
8944c7e984
@ -744,10 +744,9 @@ class Text(LRFStream):
|
||||
self.content.append(self.__class__.TextTag(name))
|
||||
|
||||
def empline(self, tag, stream):
|
||||
|
||||
def invalid(op):
|
||||
stream.seek(op)
|
||||
self.simple_container(None, 'EmpLine')
|
||||
#self.simple_container(None, 'EmpLine')
|
||||
|
||||
oldpos = stream.tell()
|
||||
try:
|
||||
@ -770,7 +769,8 @@ class Text(LRFStream):
|
||||
except LRFParseError:
|
||||
stream.seek(oldpos)
|
||||
|
||||
self.content.append(self.__class__.TextTag(
|
||||
if attrs:
|
||||
self.content.append(self.__class__.TextTag(
|
||||
'EmpLine', attrs=attrs))
|
||||
|
||||
def space(self, tag, stream):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user