summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-02-14 23:24:02 +0100
committerGeorg Brandl <georg@python.org>2007-02-14 23:24:02 +0100
commit18cab1dd5b49a1ca5b87b5c863468d709ede0f49 (patch)
tree7ef2554ef38194a400f57ce69986400c1cd34690
parente61ce464aa1bdd26460678fe316688c3b718e806 (diff)
downloadpygments-git-0.7.tar.gz
[svn]0.7
-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)