python-openxml/python-docx

paragraphs.insert doesn't work

YulianD opened this issue · 0 comments

When using the method:
It does not work, the paragraph is inserted at the end of the document and not in the position that is being indicated.

new_paragraph = wdocument.add_paragraph('Parrafo añadido desde python3','Normal')
wdocument.paragraphs.insert(4, new_paragraph)

Python: 3.12.4