diff options
Diffstat (limited to 'filters')
-rwxr-xr-x | filters/syntax-highlighting.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/filters/syntax-highlighting.py b/filters/syntax-highlighting.py index dcdba03..72d9097 100755 --- a/filters/syntax-highlighting.py +++ b/filters/syntax-highlighting.py | |||
@@ -25,6 +25,7 @@ from pygments import highlight | |||
25 | from pygments.formatters import HtmlFormatter | 25 | from pygments.formatters import HtmlFormatter |
26 | 26 | ||
27 | sys.stdin = codecs.getreader("utf-8")(sys.stdin.detach()) | 27 | sys.stdin = codecs.getreader("utf-8")(sys.stdin.detach()) |
28 | sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) | ||
28 | doc = sys.stdin.read() | 29 | doc = sys.stdin.read() |
29 | try: | 30 | try: |
30 | lexer = get_lexer_for_filename(sys.argv[1]) | 31 | lexer = get_lexer_for_filename(sys.argv[1]) |