'Format literal preformatted text.'

def preformat(self, text):

    text = self.escape(expandtabs(text))
    return replace(text, '\n\n', '\n    \n', '\n\n', '\n    \n', '    ', '&nbsp;', '\n', '<br>\n')
