Qu

docx.split_cell

Builtin index · File I/O

docx.split_cell(doc, table, row, col, [cols=])

Input: doc, table, row, col, cols · Output: no output

What it is

Undoes a merge: the merged cell containing grid cell (row,col) becomes its individual cells again, the text staying in the top-left one. With cols=N (2 or more) a cell that is *not* merged is cut into N side by side, and the other rows keep their layout by spanning the new columns. *Added in v0.4.7*

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
docx.split_cell(doc, table, row, col, [cols=])
doc —not documented yet
table —not documented yet
row —Undoes a merge: the merged cell containing grid cell (row,col) becomes its individual cells again, the text staying in the top-left one.
col —Undoes a merge: the merged cell containing grid cell (row,col) becomes its individual cells again, the text staying in the top-left one.
cols optionalWith cols=N (2 or more) a cell that is *not* merged is cut into N side by side, and the other rows keep their layout by spanning the new columns.
not documented yet*Added in v0.4.7*.

Examples

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