summaryrefslogtreecommitdiff
path: root/pygments/formatters
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 /pygments/formatters
parente61ce464aa1bdd26460678fe316688c3b718e806 (diff)
downloadpygments-git-0.7.tar.gz
[svn]0.7
Diffstat (limited to 'pygments/formatters')
-rw-r--r--pygments/formatters/html.py4
1 files changed, 2 insertions, 2 deletions
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)