Skip to content

Phase A.4: Delete and modify footnotes #4

@loadfix

Description

@loadfix

Support deleting and modifying existing footnotes. Depends on #1-#3.

  • footnote.delete() — removes the footnote from footnotes.xml AND removes the w:footnoteReference from the document body
  • Modify footnote content via footnote.paragraphs (already supported if Paragraph API works)
  • footnote.clear() — remove all content paragraphs, add a single empty one
  • Handle renumbering if needed (or just leave gaps in IDs)

Files: docx/footnotes.py, docx/oxml/footnotes.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-aFootnotes & Endnotes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions