#NEWLINE# def write_line( self , line , line_number , indent = None ) : #NEWLINE# #INDENT# if ( indent is None ) : #NEWLINE# #INDENT# indent = self . _indent #NEWLINE# #UNINDENT# if self . comment : #NEWLINE# #INDENT# line_comment = ( '  # %s:%d' % ( self . current_template . name , line_number ) ) #NEWLINE# if self . include_stack : #NEWLINE# #INDENT# ancestors = [ ( '%s:%d' % ( tmpl . name , lineno ) ) for ( tmpl , lineno ) in self . include_stack ] #NEWLINE# line_comment += ( ' (via %s)' % ', ' . join ( reversed ( ancestors ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# line_comment = '' #NEWLINE# #UNINDENT# print ( ( ( ( '    ' * indent ) + line ) + line_comment ) , file = self . file )