How to set indentation of python docx?

Good day!
How to set paragraph spacing in a document generated with docx?
Well, I can not understand the documentation.
If you can post the sample code.
first_line_indent could do. But it turns out only for one paragraph.
To use for three paragraphs - you need to enter three variables (based on code I got).
How to do this for the entire document?

UPD.
\t - help. But the interesting option of using the built-in features docx package. Document that can be VERY multi-page.

from docx import Document
from docx.shared import Inches
from docx.enum.text import WD_TAB_ALIGNMENT, WD_TAB_LEADER


document = Document()

p = document.add_paragraph('A plain paragraph having some ')

paragraph_format = p.paragraph_format
paragraph_format.first_line_indent = Inches(0.5)
tab_stops = paragraph_format.tab_stops
tab_stop = tab_stops.add_tab_stop(Inches(1.5), WD_TAB_ALIGNMENT.RIGHT, WD_TAB_LEADER.DOTS)

p.add_run('bold').bold = True
p.add_run(' and a little Russian.')

s = document.add_paragraph(
 "'a plain paragraph having some a plain paragraph having some a plain paragraph having some a plain paragraph having some a plain paragraph having some a plain paragraph having some a plain paragraph having some a plain paragraph having some "')
paragraph_format = s.paragraph_format
paragraph_format.first_line_indent = Inches(0.5)


document.save('dem55.docx')
August 23rd 19 at 10:36
1 answer
August 23rd 19 at 10:38
Thank you! I will try to deal with it. But still wondering how to use built-in features docx package. But there still is customization tab-s. - Desiree_OConne commented on August 23rd 19 at 10:41

Find more questions by tags PythonWord