#NEWLINE# def linebreak_iter( template_source ) : #NEWLINE# #INDENT# ( yield 0 ) #NEWLINE# p = template_source . find ( '\n' ) #NEWLINE# while ( p >= 0 ) : #NEWLINE# #INDENT# ( yield ( template_source + 1 ) ) #NEWLINE# p = template_source . find ( '\n' , ( p + 1 ) ) #NEWLINE# #UNINDENT# ( yield ( len ( template_source ) + 1 ) )