Show More
@@ -32,6 +32,11 b' def pygmentize(field, fctx, style, tmpl)' | |||
|
32 | 32 | if util.binary(text): |
|
33 | 33 | return |
|
34 | 34 | |
|
35 | # str.splitlines() != unicode.splitlines() because "reasons" | |
|
36 | for c in "\x0c\x1c\x1d\x1e": | |
|
37 | if c in text: | |
|
38 | text = text.replace(c, '') | |
|
39 | ||
|
35 | 40 | # Pygments is best used with Unicode strings: |
|
36 | 41 | # <http://pygments.org/docs/unicode/> |
|
37 | 42 | text = text.decode(encoding.encoding, 'replace') |
General Comments 0
You need to be logged in to leave comments.
Login now