diff --git a/pylons_app/lib/helpers.py b/pylons_app/lib/helpers.py --- a/pylons_app/lib/helpers.py +++ b/pylons_app/lib/helpers.py @@ -219,7 +219,7 @@ def pygmentize(filenode, **kwargs): pygmentize function using pygments @param filenode: """ - return literal(code_highlight(filenode.content, + return literal(code_highlight(filenode.content, filenode.lexer, HtmlFormatter(**kwargs))) def pygmentize_annotation(filenode, **kwargs): @@ -239,11 +239,11 @@ def pygmentize_annotation(filenode, **kw h = 0.22717784590367374 #generate 10k nice web friendly colors in the same order for c in xrange(n): - h +=golden_ratio + h += golden_ratio h %= 1 HSV_tuple = [h, 0.95, 0.95] RGB_tuple = colorsys.hsv_to_rgb(*HSV_tuple) - yield map(lambda x:str(int(x*256)),RGB_tuple) + yield map(lambda x:str(int(x * 256)), RGB_tuple) cgenerator = gen_color() @@ -255,7 +255,7 @@ def pygmentize_annotation(filenode, **kw return "color: rgb(%s)! important;" % (', '.join(col)) def url_func(changeset): - tooltip_html = "