GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — trouble with listnumers · Issue #87 · python-openxml/python-docx

trouble with listnumers #87

New issue
Copy link
New issue
Copy link
Closed
Closed
trouble with listnumers#87
Copy link

Description

@ilnurgi
ilnurgi
opened on Aug 15, 2014
Issue body actions
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

Activity

  1. scanny commented on Aug 15, 2014

    @scanny
    scanny
    on Aug 15, 2014
    Contributor
    More actions

    Hi @ilnurgi, the business of restarting numbering for a numbered list in Word turns out to be quite complex. There's already an open feature request for it here: #25. Also see this response to a similar question on StackOverflow: http://stackoverflow.com/questions/23446268/python-docx-how-to-restart-list-lettering/23464442#23464442.

    You can add to the feature request if you like. I'll close this one as a duplicate.

    If you're interested in working on it let me know. There are several dependencies though, namely access to styles and numbering definitions, that aren't in place yet. So it would be a bigger job than just the numbering restart itself.

  2. scanny
    closed this as completedon Aug 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.