MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / append_to

Method append_to

docx/scripts/document.py:258–262  ·  view source on GitHub ↗

Append to with automatic attribute injection.

(self, elem, xml_content)

Source from the content-addressed store, hash-verified

256 return nodes
257
258 def append_to(self, elem, xml_content):
259 """Append to with automatic attribute injection."""
260 nodes = super().append_to(elem, xml_content)
261 self._inject_attributes_to_nodes(nodes)
262 return nodes
263
264 def revert_insertion(self, elem):
265 """Reject an insertion by wrapping its content in a deletion.

Calls 1

Tested by

no test coverage detected