document = Document()
document.add_paragraph('start')
for i in 'text':
document.add_paragraph(i, style='ListNumber')
document.add_paragraph('continue')
for i in 'text':
document.add_paragraph(i, style='ListNumber')
document.add_paragraph('end')
document.save('demo.docx')
this is generated to
start
continue
end
why second list started 5, i need 1
thanks