Changeset 1403
- Timestamp:
- 11/24/05 16:57:04 (3 years ago)
- Files:
-
- django/trunk/django/views/debug.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/views/debug.py
r1400 r1403 24 24 source_lines = [] 25 25 linebreaks = izip(count(0), linebreak_iter(template_source)) 26 linebreaks.next() # skip the nothing before initial line start27 26 for num, next in linebreaks: 28 27 if start >= upto and end <= next: … … 30 29 before = escape(template_source[upto:start]) 31 30 during = escape(template_source[start:end]) 32 after = escape(template_source[end:next - 1])33 source_lines.append( (num, escape(template_source[upto:next - 1])) )31 after = escape(template_source[end:next]) 32 source_lines.append( (num, escape(template_source[upto:next])) ) 34 33 upto = next 35 34 total = len(source_lines)
