MCPcopy Index your code
hub / github.com/python-openxml/python-docx / insert_comment_range_start_above

Method insert_comment_range_start_above

src/docx/oxml/text/run.py:100–102  ·  view source on GitHub ↗

Insert a `w:commentRangeStart` element with `comment_id` before this run.

(self, comment_id: int)

Source from the content-addressed store, hash-verified

98 self.addnext(OxmlElement("w:commentRangeEnd", attrs={qn("w:id"): str(comment_id)}))
99
100 def insert_comment_range_start_above(self, comment_id: int) -> None:
101 """Insert a `w:commentRangeStart` element with `comment_id` before this run."""
102 self.addprevious(OxmlElement("w:commentRangeStart", attrs={qn("w:id"): str(comment_id)}))
103
104 @property
105 def lastRenderedPageBreaks(self) -> List[CT_LastRenderedPageBreak]:

Callers 1

mark_comment_rangeMethod · 0.80

Calls 2

OxmlElementFunction · 0.90
qnFunction · 0.90

Tested by

no test coverage detected