def visit_rubric(self, node: Element) -> None:
    if ((len(node) == 1) and (node.astext() in ('Footnotes', _('Footnotes')))):
        raise nodes.SkipNode
    try:
        rubric = self.rubrics[self.section_level]
    except IndexError:
        rubric = self.rubrics[(- 1)]
    self.body.append(('\n%s ' % rubric))
    self.escape_newlines += 1
def visit_rubric(self, node: Element) -> None:
    if ((len(node) == 1) and (node.astext() in ('Footnotes', _('Footnotes')))):
        raise nodes.SkipNode
    try:
        rubric = self.rubrics[self.section_level]
    except IndexError:
        rubric = self.rubrics[(- 1)]
    self.body.append(('\n%s ' % rubric))
    self.escape_newlines += 1