##// END OF EJS Templates
highlight: mandatory arguments where possible
Christian Ebert -
r5654:831e34e1 default
parent child Browse files
Show More
@@ -66,8 +66,7 b' class StripedHtmlFormatter(HtmlFormatter'
66 66 yield 0, "</div>"
67 67
68 68
69 def pygments_format(filename, rawtext, forcetext=False, stripecount=1,
70 style='colorful'):
69 def pygments_format(filename, rawtext, forcetext, stripecount, style):
71 70 if not forcetext:
72 71 try:
73 72 lexer = guess_lexer_for_filename(filename, rawtext)
@@ -110,10 +109,8 b' def filerevision_pygments(self, tmpl, fc'
110 109
111 110 style = self.config("web", "pygments_style", "colorful")
112 111
113 text_formatted = lines(pygments_format(f, text,
114 forcetext=forcetext,
115 stripecount=self.stripecount,
116 style=style))
112 text_formatted = lines(pygments_format(f, text, forcetext,
113 self.stripecount, style))
117 114
118 115 # override per-line template
119 116 tmpl.cache['fileline'] = '#line#'
General Comments 0
You need to be logged in to leave comments. Login now