5 - def _wrap_pre(self, inner):
6 + def _wrap_pre_code(self, inner):
9 style.append(self.prestyles)
12 # the empty span here is to keep leading empty lines from being
13 # ignored by HTML parsers
14 - yield 0, ('<pre' + (style and ' style="%s"' % style) + '><span></span>')
15 + yield 0, ('<pre' + (style and ' style="%s"' % style) + '><code><span></span>')
19 + yield 0, '</code></pre>'
21 def _format_lines(self, tokensource):
24 individual lines, in custom generators. See docstring
25 for `format`. Can be overridden.
27 - return self._wrap_div(self._wrap_pre(source))
28 + return self._wrap_div(self._wrap_pre_code(source))
30 def format_unencoded(self, tokensource, outfile):