Qu

docx.move_paragraph

Builtin index · File I/O

docx.move_paragraph(doc, from, to)

Input: doc, from, to · Output: no output

What it is

Moves body paragraph from so that it becomes body paragraph to (as numbered after the move). Tables and other block content stay where they are. A paragraph that ends a section carries the section break and is refused. *Added in v0.4.7*

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
docx.move_paragraph(doc, from, to)
doc —not documented yet
from —Moves body paragraph from so that it becomes body paragraph to (as numbered after the move).
to —Moves body paragraph from so that it becomes body paragraph to (as numbered after the move).
not documented yetTables and other block content stay where they are. A paragraph that ends a section carries the section break and is refused. *Added in v0.4.7*.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.