(self)
return self
Resets all state variables so that we can start with a new text.
Resets all state variables so that we can start with a new text.
Resets all state variables so that we can start with a new text .
def reset(self):
        """
        Resets all state variables so that we can start with a new text.
        """
        self.htmlStash.reset()
        self.references.clear()

        for extension in self.registeredExtensions:
            if hasattr(extension, 'reset'):
                extension.reset()

        return self
def reset ( self ) : self . htmlStash . reset ( ) self . references . clear ( ) for extension in self . registeredExtensions : if hasattr ( extension , 'reset' ) : extension . reset ( ) return self