Qu

docx.track_delete

Builtin index · File I/O

result = docx.track_delete(doc, i, [on=], [all=false], [author="Qu"], [date=])

Input: doc, i, on, all, author, date · Output: result

What it is

Marks text in body paragraph i as a tracked deletion (w:del, the text kept as w:delText): the first occurrence of on, every occurrence with all=true, or all of the paragraph -- including its paragraph mark, so accepting removes the paragraph -- when on is omitted. Rejecting restores the text. Refused inside a field's result.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = docx.track_delete(doc, i, [on=], [all=false], [author="Qu"], [date=])
doc —not documented yet
i —Marks text in body paragraph i as a tracked deletion (w:del, the text kept as w:delText): the first occurrence of on, every occurrence with all=true, or all of the paragraph -- including its paragraph mark, so accepting removes the paragraph -- when on is omitted.
on optionalMarks text in body paragraph i as a tracked deletion (w:del, the text kept as w:delText): the first occurrence of on, every occurrence with all=true, or all of the paragraph -- including its paragraph mark, so accepting removes the paragraph -- when on is omitted.
all optional (default false)Marks text in body paragraph i as a tracked deletion (w:del, the text kept as w:delText): the first occurrence of on, every occurrence with all=true, or all of the paragraph -- including its paragraph mark, so accepting removes the paragraph -- when on is omitted.
author optional (default "Qu")not documented yet
date optionalnot documented yet
result —
Returns how many spans were marked. *Added in v0.4.7*

Examples

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