Skip to content

Commit

Permalink
Merge pull request #11 from baltazarix/fix-commenting-particular-run
Browse files Browse the repository at this point in the history
prepend and append comment elements instead of inserting them inside <w:r>
  • Loading branch information
BayooG authored Nov 19, 2020
2 parents 15b250e + 6ad5533 commit 890b807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docx/oxml/text/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def link_comment(self, _id):
rStart._id = _id
rEnd = OxmlElement('w:commentRangeEnd')
rEnd._id = _id
self.insert(0,rStart)
self.append(rEnd)
self.addprevious(rStart)
self.addnext(rEnd)

def add_comment_reference(self, _id):
reference = OxmlElement('w:commentReference')
Expand Down

0 comments on commit 890b807

Please sign in to comment.