diff options
author | Sean Finney <seanius@debian.org> | 2009-09-06 21:59:45 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2009-09-06 21:59:45 +0200 |
commit | 32bd3bc25fd4a590d9d51b9abb0e804a0adf4aa0 (patch) | |
tree | 0f416837ae411a5b95a3af150c03aef12b0b38f2 | |
parent | a9ffd60188742f144d1a8d49f93b05f8e34c39d7 (diff) | |
download | patch-tracker-32bd3bc25fd4a590d9d51b9abb0e804a0adf4aa0.tar.gz |
proper fix for encoding/decoding errors in patch_view contents
this is the proper fix for the previous commit/revert.
-rw-r--r-- | templates/patch_view.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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)) </div> <h2>Patch contents</h2> <div class="patch"> - $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')) </div> #end def |