Skip to content

Commit

Permalink
just another small fix to the template_debug layout
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
Georg Bauer committed Nov 24, 2005
1 parent 73766b1 commit eff2a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/views/debug.py
Expand Up @@ -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)

Expand Down

0 comments on commit eff2a1f

Please sign in to comment.