mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
4e2556ee63
commit
dbd33868c3
@ -792,7 +792,7 @@ class Text(LRFStream):
|
|||||||
oldpos = stream.tell()
|
oldpos = stream.tell()
|
||||||
try:
|
try:
|
||||||
t = Tag(stream)
|
t = Tag(stream)
|
||||||
if t.id not in [0xF579, 0xF57A]:
|
if t.id not in (0xF579, 0xF57A):
|
||||||
raise LRFParseError
|
raise LRFParseError
|
||||||
except LRFParseError:
|
except LRFParseError:
|
||||||
invalid(oldpos)
|
invalid(oldpos)
|
||||||
@ -803,7 +803,7 @@ class Text(LRFStream):
|
|||||||
oldpos = stream.tell()
|
oldpos = stream.tell()
|
||||||
try:
|
try:
|
||||||
t = Tag(stream)
|
t = Tag(stream)
|
||||||
if t.id not in [0xF579, 0xF57A]:
|
if t.id not in (0xF579, 0xF57A):
|
||||||
raise LRFParseError
|
raise LRFParseError
|
||||||
h = TextAttr.tag_map[t.id]
|
h = TextAttr.tag_map[t.id]
|
||||||
attrs[h[0]] = TextAttr.tag_to_val(h, None, t, None)
|
attrs[h[0]] = TextAttr.tag_to_val(h, None, t, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user