mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
1e1c3e8b9d
commit
9919a1f4c0
@ -524,8 +524,8 @@ class MobiReader(object):
|
|||||||
attrib['href'] = "#filepos%d" % int(filepos)
|
attrib['href'] = "#filepos%d" % int(filepos)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
if (tag.tag == 'a' and attrib.get('id', '').startswith('filepos')
|
if (tag.tag == 'a' and attrib.get('id', '').startswith('filepos') and
|
||||||
and not tag.text and len(tag) == 0 and (tag.tail is None or not
|
not tag.text and len(tag) == 0 and (tag.tail is None or not
|
||||||
tag.tail.strip()) and getattr(tag.getnext(), 'tag',
|
tag.tail.strip()) and getattr(tag.getnext(), 'tag',
|
||||||
None) in BLOCK_TAGS):
|
None) in BLOCK_TAGS):
|
||||||
# This is an empty anchor immediately before a block tag, move
|
# This is an empty anchor immediately before a block tag, move
|
||||||
|
Loading…
x
Reference in New Issue
Block a user