docx.line_spacing
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.
| Code | Input | Output | Description |
result = docx.line_spacing(doc, i, [to=], [lines=], [exactly=], [at_least=], [before=], [after=]) | doc —not documented yeti —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.