diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-12-09 02:35:38 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-12-09 02:35:38 +0000 |
| commit | d06a12406bb921ce58e9dd37989a8b584640a1d3 (patch) | |
| tree | 22a5c5d942b453f8b3bc71f46a20dd7e39a9a30d /django/views/debug.py | |
| parent | 99f0f414d5ff74aa24355ad4d4cff5a4110e51df (diff) | |
Fixed #998 -- Fixed edge-case bug in debug view for templates with only one line. Thanks, andy@jadedplanet.net
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/debug.py')
| -rw-r--r-- | django/views/debug.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 256f7cd662..c7a4e6bf7d 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -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 |
