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:
Georg Bauer 2005-11-24 23:31:33 +00:00
parent 798e6d5663
commit 73766b1f88
1 changed files with 1 additions and 0 deletions

View File

@ -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