summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/__init__.py2
-rw-r--r--pygments/formatters/html.py4
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)