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