Permalink
Browse files

Fixed #998 -- Fixed edge-case bug in debug view for templates with o…

…nly one line. Thanks, andy@jadedplanet.net

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Dec 9, 2005
1 parent 99f0f41 commit d06a12406bb921ce58e9dd37989a8b584640a1d3
Showing with 2 additions and 0 deletions.
  1. +1 −0 AUTHORS
  2. +1 −0 django/views/debug.py
View
@@ -37,6 +37,7 @@ answer newbie questions, and generally made Django that much better:
Paul Bissex <http://e-scribe.com/>
Simon Blanchard
Andrew Brehaut <http://brehaut.net/blog>
+ andy@jadedplanet.net
Antonio Cavedoni <http://cavedoni.com/>
C8E
Amit Chakradeo <http://amit.chakradeo.net/>
View
@@ -23,6 +23,7 @@ def get_template_exception_info(exc_type, exc_value, tb):
line = 0
upto = 0
source_lines = []
+ before = during = after = ""
for num, next in enumerate(linebreak_iter(template_source)):
if start >= upto and end <= next:
line = num

0 comments on commit d06a124

Please sign in to comment.