mirror of
https://github.com/Hopiu/django.git
synced 2026-05-18 12:31:06 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue