From 0eeab964d0373ecdbdd14b5c96b0ab6faaa18cad Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 23 Jan 2018 22:06:12 +0000 Subject: Generate relationships path from part path --- mammoth/docx/comments_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mammoth/docx/comments_xml.py') 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) -- cgit v1.2.3