##// END OF EJS Templates
highlight: ignore Unicode's extra linebreaks (issue4291)...
Matt Mackall -
r23613:7b8ff3fd default
parent child Browse files
Show More
@@ -32,6 +32,11 b' def pygmentize(field, fctx, style, tmpl)'
32 if util.binary(text):
32 if util.binary(text):
33 return
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 # Pygments is best used with Unicode strings:
40 # Pygments is best used with Unicode strings:
36 # <http://pygments.org/docs/unicode/>
41 # <http://pygments.org/docs/unicode/>
37 text = text.decode(encoding.encoding, 'replace')
42 text = text.decode(encoding.encoding, 'replace')
General Comments 0
You need to be logged in to leave comments. Login now