def visit_index(self, node: Element) -> None:
    if isinstance(node.parent, nodes.paragraph):
        self.ensure_eol()
    else:
        self.body.append('\n')
    for entry in node['entries']:
        (typ, text, tid, text2, key_) = entry
        text = self.escape_menu(text)
        self.body.append(('@geindex %s\n' % text))
def visit_index(self, node: Element) -> None:
    if isinstance(node.parent, nodes.paragraph):
        self.ensure_eol()
    else:
        self.body.append('\n')
    for entry in node['entries']:
        (typ, text, tid, text2, key_) = entry
        text = self.escape_menu(text)
        self.body.append(('@geindex %s\n' % text))