diff options
author | gbrandl <devnull@localhost> | 2007-02-14 23:24:02 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-02-14 23:24:02 +0100 |
commit | fcfb61f3aac096e41f6c1247e841f47a061b0eeb (patch) | |
tree | 7ef2554ef38194a400f57ce69986400c1cd34690 | |
parent | 9f62a0c9eeac9da13b118d49b703d340d0cdcf96 (diff) | |
download | pygments-fcfb61f3aac096e41f6c1247e841f47a061b0eeb.tar.gz |
[svn]0.7
-rw-r--r-- | pygments/__init__.py | 2 | ||||
-rw-r--r-- | pygments/formatters/html.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pygments/__init__.py b/pygments/__init__.py index 55eced1f..b7b19e13 100644 --- a/pygments/__init__.py +++ b/pygments/__init__.py @@ -23,7 +23,7 @@ :license: BSD, see LICENSE for more details. """ -__version__ = '0.8' +__version__ = '0.7' __author__ = 'Georg Brandl <g.brandl@gmx.net>' __url__ = 'http://pygments.org/' __license__ = 'BSD License' diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 528c981b..5acc858d 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -445,10 +445,10 @@ class HtmlFormatter(Formatter): while cclass is None: ttype = ttype.parent cclass = getcls(ttype) - cspan = cclass and '<span style="%s">' % c2s[cclass][0] + cspan = cclass and '<span style="%s">' % c2s[cclass][0] or '' else: cls = self._get_css_class(ttype) - cspan = cls and '<span class="%s">' % cls + cspan = cls and '<span class="%s">' % cls or '' if enc: value = value.encode(enc) |