Show More
@@ -89,7 +89,7 b' def pygmentize(field, fctx, style, tmpl,' | |||||
89 | coloriter = (s.encode(encoding.encoding, 'replace') |
|
89 | coloriter = (s.encode(encoding.encoding, 'replace') | |
90 | for s in colorized.splitlines()) |
|
90 | for s in colorized.splitlines()) | |
91 |
|
91 | |||
92 | tmpl.filters['colorize'] = lambda x: next(coloriter) |
|
92 | tmpl._filters['colorize'] = lambda x: next(coloriter) | |
93 |
|
93 | |||
94 | oldl = tmpl.cache[field] |
|
94 | oldl = tmpl.cache[field] | |
95 | newl = oldl.replace('line|escape', 'line|colorize') |
|
95 | newl = oldl.replace('line|escape', 'line|colorize') |
General Comments 0
You need to be logged in to leave comments.
Login now