Skip to content

alllexx88/python-docx-split-run

Repository files navigation

python-docx-split-run

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 descriptions
  • test.py: a simple usage example
  • test1.docx: used by test.py
  • test1-highlightened.docx, test1-highlightened-bear.docx, test1-highlightened-tobear.docx: test.py created output

About

python-docx run manipulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages