Some python-docx run manipulation, namely:
- Insert a run into paragraph at given position number
- Insert a run into paragraph before/after an existing run
- Copy run formatting
- Split existing run by indexes, while retaining formatting
Inspired by #519 python-docx issue discussion.
Project files:
run_tools.py: the actual run manipulation functions, including descriptionstest.py: a simple usage exampletest1.docx: used bytest.pytest1-highlightened.docx,test1-highlightened-bear.docx,test1-highlightened-tobear.docx:test.pycreated output