fixed debug view for templates so it starts counting with 1
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
798e6d5663
commit
73766b1f88
|
@ -9,6 +9,7 @@ from os.path import dirname, join as pathjoin
|
|||
HIDDEN_SETTINGS = re.compile('SECRET|PASSWORD')
|
||||
|
||||
def linebreak_iter(template_source):
|
||||
yield 0
|
||||
p = template_source.find('\n')
|
||||
while p >= 0:
|
||||
yield p
|
||||
|
|
Loading…
Reference in New Issue