#NEWLINE# def find_next_matching_line( self , match_func , count = 1 ) : #NEWLINE# #INDENT# '\n        Look downwards for empty lines.\n        Return the line index, relative to the current line.\n        ' #NEWLINE# result = None #NEWLINE# for ( index , line ) in enumerate ( self . lines [ ( self . cursor_position_row + 1 ) : ] ) : #NEWLINE# #INDENT# if match_func ( line ) : #NEWLINE# #INDENT# result = ( 1 + index ) #NEWLINE# count -= 1 #NEWLINE# #UNINDENT# if ( count == 0 ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# return result