snapshot: fix inspect comparison with empty ins/del (#67628)
gitea-wip/wcs/pipeline/head Build started...
Details
gitea-wip/wcs/pipeline/head Build started...
Details
This commit is contained in:
parent
225d1dacef
commit
a189231a7a
|
@ -165,7 +165,7 @@ class SnapshotsDirectory(Directory):
|
|||
# remove empty ins and del tags
|
||||
for elem in panel.find('ins, del'):
|
||||
d = pq(elem)
|
||||
if not d.html().strip():
|
||||
if not (d.html() or '').strip():
|
||||
d.remove()
|
||||
# prevent auto-closing behaviour of pyquery .html() method
|
||||
for elem in panel.find('span, ul, div'):
|
||||
|
|
Loading…
Reference in New Issue