ver Jan26thv3
fixed bug caused by an empty node.text remove nodes whose name and text are all empty
This commit is contained in:
@@ -40,6 +40,8 @@ def filter_nodes(nodes):
|
||||
filtered_nodes.append(node)
|
||||
elif node.tag == 'text':
|
||||
continue
|
||||
elif node.get("name") == "" and node.text is None:
|
||||
continue
|
||||
else:
|
||||
coords = tuple(
|
||||
map(int, node.attrib.get('{uri:deskat:component.at-spi.gnome.org}screencoord').strip('()').split(', ')))
|
||||
|
||||
Reference in New Issue
Block a user