Skip to content

trouble with listnumers #87

@ilnurgi

Description

@ilnurgi
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

  1. t
  2. e
  3. x
  4. t
    continue
  5. t
  6. e
  7. x
  8. t
    end

why second list started 5, i need 1

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions