Django

Code

Changeset 1578

Show
Ignore:
Timestamp:
12/08/05 20:35:38 (3 years ago)
Author:
adrian
Message:

Fixed #998 -- Fixed edge-case bug in debug view for templates with only one line. Thanks, andy@jadedplanet.net

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r1577 r1578  
    3838    Simon Blanchard 
    3939    Andrew Brehaut <http://brehaut.net/blog> 
     40    andy@jadedplanet.net 
    4041    Antonio Cavedoni <http://cavedoni.com/> 
    4142    C8E 
  • django/trunk/django/views/debug.py

    r1565 r1578  
    2424    upto = 0 
    2525    source_lines = [] 
     26    before = during = after = "" 
    2627    for num, next in enumerate(linebreak_iter(template_source)): 
    2728        if start >= upto and end <= next: