Preserve whitespace in raw html <pre> class Foo(): bar = 'bar' def baz(self): print self.bar </pre>