Commits

Anonymous committed 99df0a7

[svn]

  • Participants
  • Parent commits d14ced0
  • Branches trunk
  • Tags 0.7

Comments (0)

Files changed (2)

pygments/__init__.py

     :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'

pygments/formatters/html.py

                 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)