diff options
author | gbrandl <devnull@localhost> | 2006-12-17 21:07:01 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2006-12-17 21:07:01 +0100 |
commit | d6f36b551c9857a6392acc9b2fdbe2f707c6ab1c (patch) | |
tree | 69f57b8d4bf8b366892d28244eb0d9e162d94c91 /pygments/formatters/html.py | |
parent | f3bd48e0ad9b36b8141912f8772eeea2e4f33796 (diff) | |
download | pygments-d6f36b551c9857a6392acc9b2fdbe2f707c6ab1c.tar.gz |
[svn] Make test suite work again.
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 77ee36f1..c9118f7f 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -269,7 +269,7 @@ class HtmlFormatter(Formatter): if self.nowrap: self._format_nowrap(tokensource, outfile) return - + realoutfile = outfile lnos = self.linenos full = self.full @@ -325,7 +325,8 @@ class HtmlFormatter(Formatter): code = ret)) try: cf = open(cssfilename, "w") - cf.write(CSSFILE_TEMPLATE % dict(styledefs=self.get_style_defs('body'))) + cf.write(CSSFILE_TEMPLATE % {'styledefs': + self.get_style_defs('body')}) cf.close() except IOError, err: err.strerror = 'Error writing CSS file: ' + err.strerror |