(self, text)
return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
                             ' ', '&nbsp;', '\n', '<br>\n')
Format literal preformatted text.
Format literal preformatted text.
Format literal preformatted text .
def preformat(self, text):
        """Format literal preformatted text."""
        text = self.escape(text.expandtabs())
        return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
                             ' ', '&nbsp;', '\n', '<br>\n')
def preformat ( self , text ) : text = self . escape ( text . expandtabs ( ) ) return replace ( text , '\n\n' , '\n \n' , '\n\n' , '\n \n' , ' ' , '&nbsp;' , '\n' , '<br>\n' )