diff options
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 5acc858d..29d69708 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -341,7 +341,7 @@ class HtmlFormatter(Formatter): text_style = '' if Text in self.ttype2class: text_style = ' ' + self.class2style[self.ttype2class[Text]][0] - lines.insert(0, '%s{ background: %s;%s }' % + lines.insert(0, '%s { background: %s;%s }' % (arg, self.style.background_color, text_style)) return '\n'.join(lines) @@ -413,7 +413,7 @@ class HtmlFormatter(Formatter): yield 0, '</td></tr></table>' def _wrap_div(self, inner): - yield 0, ('<div' + (self.cssclass and ' class="%s" ' % self.cssclass) + yield 0, ('<div' + (self.cssclass and ' class="%s"' % self.cssclass) + (self.cssstyles and ' style="%s"' % self.cssstyles) + '>') for tup in inner: yield tup |