From 32bd3bc25fd4a590d9d51b9abb0e804a0adf4aa0 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sun, 6 Sep 2009 21:59:45 +0200 Subject: proper fix for encoding/decoding errors in patch_view contents this is the proper fix for the previous commit/revert. --- templates/patch_view.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/patch_view.tmpl b/templates/patch_view.tmpl index 5e605bf..52b9036 100644 --- a/templates/patch_view.tmpl +++ b/templates/patch_view.tmpl @@ -24,6 +24,6 @@ $escape($str($patch.diffstat))

Patch contents

- $pygments.highlight($str($patch), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='utf-8')) + $pygments.highlight($str($patch).decode('utf-8'), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='utf-8'))
#end def -- cgit v1.2.3