diff options
Diffstat (limited to 'mammoth/docx/comments_xml.py')
| -rw-r--r-- | mammoth/docx/comments_xml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mammoth/docx/comments_xml.py b/mammoth/docx/comments_xml.py index 6d35c12..387432f 100644 --- a/mammoth/docx/comments_xml.py +++ b/mammoth/docx/comments_xml.py @@ -3,7 +3,7 @@ from .. import documents from .. import results -def create_comments_reader(body_reader): +def read_comments_xml_element(element, body_reader): def read_comments_xml_element(element): comment_elements = element.find_children("w:comment") return results.combine(lists.map(_read_comment_element, comment_elements)) @@ -21,4 +21,4 @@ def create_comments_reader(body_reader): author_initials=read_optional_attribute("w:initials"), )) - return read_comments_xml_element + return read_comments_xml_element(element) |
