Skip to content

More of a question (not an issue). Raising here, since there's no Discussion section. #33

@jay-ramani

Description

@jay-ramani

How do I delete one of the "Dialogue" events? If I try

for event in doc.events:
    if event.TYPE == "Dialogue":
        for line in ("Remove 1", "Remove 2", "Remove 3"):
            if line in event.text:
                event.del()

I get a "SyntaxError: invalid syntax".

I'm using Python version 3.14.0 on an X86-64 system.

Thanks for the attention. Cheers.

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