Skip to content

Commit

Permalink
Fixed #998 -- Fixed edge-case bug in debug view for templates with on…
Browse files Browse the repository at this point in the history
…ly 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 d06a124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ answer newbie questions, and generally made Django that much better:
Paul Bissex <http://e-scribe.com/> Paul Bissex <http://e-scribe.com/>
Simon Blanchard Simon Blanchard
Andrew Brehaut <http://brehaut.net/blog> Andrew Brehaut <http://brehaut.net/blog>
andy@jadedplanet.net
Antonio Cavedoni <http://cavedoni.com/> Antonio Cavedoni <http://cavedoni.com/>
C8E C8E
Amit Chakradeo <http://amit.chakradeo.net/> Amit Chakradeo <http://amit.chakradeo.net/>
Expand Down
1 change: 1 addition & 0 deletions django/views/debug.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def get_template_exception_info(exc_type, exc_value, tb):
line = 0 line = 0
upto = 0 upto = 0
source_lines = [] source_lines = []
before = during = after = ""
for num, next in enumerate(linebreak_iter(template_source)): for num, next in enumerate(linebreak_iter(template_source)):
if start >= upto and end <= next: if start >= upto and end <= next:
line = num line = num
Expand Down

0 comments on commit d06a124

Please sign in to comment.