merge with 0.6

This commit is contained in:
Georg Brandl
2009-04-28 23:14:37 +02:00

View File

@@ -158,6 +158,8 @@ class PygmentsBridge(object):
return True
def highlight_block(self, source, lang, linenos=False):
if isinstance(source, str):
source = source.decode()
if not pygments:
return self.unhighlighted(source)
if lang in ('py', 'python'):