diff options
Diffstat (limited to 'sphinx/builders/xml.py')
-rw-r--r-- | sphinx/builders/xml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/xml.py b/sphinx/builders/xml.py index 9dd3afb54..fdef14259 100644 --- a/sphinx/builders/xml.py +++ b/sphinx/builders/xml.py @@ -71,7 +71,7 @@ class XMLBuilder(Builder): # work around multiple string % tuple issues in docutils; # replace tuples in attribute values with lists doctree = doctree.deepcopy() - for node in doctree.traverse(nodes.Element): + for node in doctree.findall(nodes.Element): for att, value in node.attributes.items(): if isinstance(value, tuple): node.attributes[att] = list(value) |