Skip to content

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

Closed

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.

Activity

  1. locked and limited conversation to collaborators on Dec 2, 2025
  2. converted this issue into a discussion #35 on Dec 2, 2025
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