def visit_Text(self, node: Text) -> None:
    s = self.escape(node.astext())
    if self.escape_newlines:
        s = s.replace('\n', ' ')
    if self.escape_hyphens:
        s = s.replace('-', '@w{-}')
    self.body.append(s)
def visit_Text(self, node: Text) -> None:
    s = self.escape(node.astext())
    if self.escape_newlines:
        s = s.replace('\n', ' ')
    if self.escape_hyphens:
        s = s.replace('-', '@w{-}')
    self.body.append(s)