Show More
@@ -55,9 +55,12 b' def pygmentize(self, tmpl, fctx, field):' | |||
|
55 | 55 | new_header = old_header + SYNTAX_CSS |
|
56 | 56 | tmpl.cache['header'] = new_header |
|
57 | 57 | |
|
58 | text = fctx.data() | |
|
59 | if util.binary(text): | |
|
60 | return | |
|
61 | ||
|
58 | 62 | style = self.config("web", "pygments_style", "colorful") |
|
59 | 63 | # To get multi-line strings right, we can't format line-by-line |
|
60 | text = fctx.data() | |
|
61 | 64 | try: |
|
62 | 65 | lexer = guess_lexer_for_filename(fctx.path(), text, |
|
63 | 66 | encoding=util._encoding) |
General Comments 0
You need to be logged in to leave comments.
Login now