From cb093e9171bec11eeeff4b50eb0f575622721bf3 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 17 Feb 2018 14:27:19 +0100 Subject: [PATCH] Update docstring of findReferencedElements (to match changes in c54a7239e70bb1f0e40ed9ac191dbf96ebfb0dca) --- scour/scour.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scour/scour.py b/scour/scour.py index 6818c57..1be33c2 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -551,14 +551,12 @@ referencingProps = ['fill', 'stroke', 'filter', 'clip-path', 'mask', 'marker-st def findReferencedElements(node, ids=None): """ - Returns the number of times an ID is referenced as well as all elements - that reference it. node is the node at which to start the search. The - return value is a map which has the id as key and each value is an array - where the first value is a count and the second value is a list of nodes - that referenced it. + Returns IDs of all referenced elements + - node is the node at which to start the search. + - returns a map which has the id as key and + each value is is a list of nodes - Currently looks at fill, stroke, clip-path, mask, marker, and - xlink:href attributes. + Currently looks at 'xlink:href' and all attributes in 'referencingProps' """ global referencingProps if ids is None: