This commit is contained in:
Kovid Goyal 2013-11-26 16:21:56 +05:30
parent 10108a8772
commit 6f07157a6c

View File

@ -106,7 +106,7 @@ def has_only_blocks(x):
if x.text and not isspace(x.text): if x.text and not isspace(x.text):
return False return False
for child in x: for child in x:
if not isblock(child) or (child.tail and isspace(child.tail)): if not isblock(child) or (child.tail and not isspace(child.tail)):
return False return False
return True return True