Qu

docx.line_spacing

Builtin index · File I/O

result = docx.line_spacing(doc, i, [to=], [lines=], [exactly=], [at_least=], [before=], [after=])

Input: doc, i, to, lines, exactly, at_least, before, after · Output: result

What it is

Sets spacing for body paragraphs i through to (default: just i). Line spacing is one of lines= (a multiple: 1.5, 2.0), exactly= or at_least= (points); before= and after= are points of space around the paragraph. Properties not given are left as they are.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = docx.line_spacing(doc, i, [to=], [lines=], [exactly=], [at_least=], [before=], [after=])
doc —not documented yet
i —Sets spacing for body paragraphs i through to (default: just i).
to optionalSets spacing for body paragraphs i through to (default: just i).
lines optionalLine spacing is one of lines= (a multiple: 1.5, 2.0), exactly= or at_least= (points).
exactly optionalLine spacing is one of lines= (a multiple: 1.5, 2.0), exactly= or at_least= (points).
at_least optionalLine spacing is one of lines= (a multiple: 1.5, 2.0), exactly= or at_least= (points).
before optionalbefore= and after= are points of space around the paragraph.
after optionalbefore= and after= are points of space around the paragraph.
result —
Returns how many paragraphs changed. *Added in v0.4.7*

Examples

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