aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index dbd78dc..b440846 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -216,4 +216,5 @@ class CommentReference(Element):
comment_reference = CommentReference
-ElementVisitor = cobble.visitor(Element)
+def element_visitor(args):
+ return cobble.visitor(Element, args=args)