summaryrefslogtreecommitdiff
path: root/django/views/debug.py
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-11-24 23:35:28 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-11-24 23:35:28 +0000
commiteff2a1fde278e9fb5577728550cd1650e4e65c42 (patch)
tree9d2f66e117effff2612ec0d7086593a3bb6671c8 /django/views/debug.py
parent73766b1f8890a90013dc16560aa7329bdfe734a3 (diff)
just another small fix to the template_debug layout
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/debug.py')
-rw-r--r--django/views/debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index 4cf70cc3d7..80af44343f 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -27,10 +27,10 @@ def get_template_exception_info(exc_type, exc_value, tb):
for num, next in linebreaks:
if start >= upto and end <= next:
line = num
- before = escape(template_source[upto:start])
+ before = escape(template_source[upto+1:start])
during = escape(template_source[start:end])
after = escape(template_source[end:next])
- source_lines.append( (num, escape(template_source[upto:next])) )
+ source_lines.append( (num, escape(template_source[upto+1:next])) )
upto = next
total = len(source_lines)