From 73766b1f8890a90013dc16560aa7329bdfe734a3 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Thu, 24 Nov 2005 23:31:33 +0000 Subject: [PATCH] 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 --- django/views/debug.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/views/debug.py b/django/views/debug.py index 5371af9f5c..4cf70cc3d7 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -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