Add a single comment to commentsIds.xml.
(self, para_id, durable_id)
| 1105 | editor.append_to(root, xml) |
| 1106 | |
| 1107 | def _add_to_comments_ids_xml(self, para_id, durable_id): |
| 1108 | """Add a single comment to commentsIds.xml.""" |
| 1109 | if not self.comments_ids_path.exists(): |
| 1110 | shutil.copy(TEMPLATE_DIR / "commentsIds.xml", self.comments_ids_path) |
| 1111 | |
| 1112 | editor = self["word/commentsIds.xml"] |
| 1113 | root = editor.get_node(tag="w16cid:commentsIds") |
| 1114 | |
| 1115 | xml = f'<w16cid:commentId w16cid:paraId="{para_id}" w16cid:durableId="{durable_id}"/>' |
| 1116 | editor.append_to(root, xml) |
| 1117 | |
| 1118 | def _add_to_comments_extensible_xml(self, durable_id): |
| 1119 | """Add a single comment to commentsExtensible.xml.""" |
no test coverage detected