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

Method insert_before

docx/scripts/document.py:252–256  ·  view source on GitHub ↗

Insert before with automatic attribute injection.

(self, elem, xml_content)

Source from the content-addressed store, hash-verified

250 return nodes
251
252 def insert_before(self, elem, xml_content):
253 """Insert before with automatic attribute injection."""
254 nodes = super().insert_before(elem, xml_content)
255 self._inject_attributes_to_nodes(nodes)
256 return nodes
257
258 def append_to(self, elem, xml_content):
259 """Append to with automatic attribute injection."""

Callers 2

add_commentMethod · 0.45
_update_settingsMethod · 0.45

Calls 1

Tested by

no test coverage detected