Skip to content

docs: typo in "Working with Sections" #285

Closed
@adustinsky

Description

@adustinsky

In the web page: https://python-docx.readthedocs.org/en/latest/user/sections.html
a sample code has a mistake in writing:

Adding a new section
The Document.add_section() method allows a new section to be started at the end of the document. Paragraphs and tables added after calling this method will appear in the new section:

current_section = document.section[-1] # last section in document

Here, the "section[-1] " shoule be " sections[-1] ".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions