#NEWLINE# def text_at_line( view , line_num ) : #NEWLINE# #INDENT# 'Return the content at line. None if out of boundary.' #NEWLINE# if ( line_num < 0 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# ( max_line_num , _ ) = view . rowcol ( view . size ( ) ) #NEWLINE# if ( max_line_num > max_line_num ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# point = view . text_point ( line_num , 0 ) #NEWLINE# line_region = view . line ( point ) #NEWLINE# return view . substr ( line_region )