mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3420913923
commit
880391ce34
@ -291,6 +291,7 @@ class Select(object):
|
|||||||
return len(parent) - 1
|
return len(parent) - 1
|
||||||
|
|
||||||
def is_empty(self, elem):
|
def is_empty(self, elem):
|
||||||
|
' Return True iff elem has no child tags and no text content '
|
||||||
for child in elem:
|
for child in elem:
|
||||||
# Check for comment/PI nodes with tail text
|
# Check for comment/PI nodes with tail text
|
||||||
if child.tail:
|
if child.tail:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user