pygments_style can be a style class now

This commit is contained in:
Armin Ronacher
2008-04-28 12:41:02 +00:00
parent b9a30a4729
commit f4a3ee2eaf
+3 -1
View File
@@ -87,8 +87,10 @@ class PygmentsBridge(object):
return
if stylename == 'sphinx':
style = SphinxStyle
else:
elif isinstance(stylename, basestring):
style = get_style_by_name(stylename)
else:
style = stylename
self.hfmter = {False: HtmlFormatter(style=style),
True: HtmlFormatter(style=style, linenos=True)}
self.lfmter = {False: LatexFormatter(style=style),