[extensions-web] That's not what I wanted to do at all



commit e7b090e42071e53cd8d3cd75683ea3f42faea541
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Nov 22 18:11:11 2011 -0500

    That's not what I wanted to do at all
    
    We're expecting that pygments will escape HTML for us. Otherwise, we're just
    escaping the HTML that pygments generates

 sweettooth/review/diffview.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/review/diffview.py b/sweettooth/review/diffview.py
index 7fcc504..cafc795 100644
--- a/sweettooth/review/diffview.py
+++ b/sweettooth/review/diffview.py
@@ -1,7 +1,6 @@
 
 import pygments.formatters
 
-from django.utils.html import escape
 from review.diffutils import get_chunks, split_lines
 
 # Stolen from ReviewBoard
@@ -29,7 +28,7 @@ REPLACED_REGION = REGION % (u'line replaced',)
 
 def get_line_region_markup(line, regions):
     if regions == []:
-        return [UNCHANGED_REGION % escape(line)]
+        return [UNCHANGED_REGION % line]
 
     parts = []
     last_end = 0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]