diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-01-23 22:06:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-01-23 22:06:12 +0000 |
| commit | 0eeab964d0373ecdbdd14b5c96b0ab6faaa18cad (patch) | |
| tree | eb4adcb3e06509d0b4613bd0592bfd3030cfd680 /mammoth/docx/comments_xml.py | |
| parent | 93e07b02624f668aa9300c048cde05bb416dda35 (diff) | |
Generate relationships path from part path
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) |
