diff options
| author | Georg Brandl <georg@python.org> | 2007-02-15 19:40:08 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-02-15 19:40:08 +0100 |
| commit | f6f1f87c497dd3e3faf34b16277cdb7430206735 (patch) | |
| tree | 826c7a0125f67d4911d0d514feaf44c69657d2f7 /pygments/formatters/html.py | |
| parent | 266f9c114ad1c575f609694500488d36d40ff904 (diff) | |
| download | pygments-git-f6f1f87c497dd3e3faf34b16277cdb7430206735.tar.gz | |
[svn] Prepare for 0.7.1.
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 |
