def linebreak_iter(template_source):
    yield 0
    p = template_source.find('\n')
    while p >= 0:
        yield p+1
        p = template_source.find('\n', p+1)
    yield len(template_source) + 1
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/views/debug.py/linebreak_iter/original