#NEWLINE# def analyse_text( text ) : #NEWLINE# #INDENT# npos = text . find ( '\n' ) #NEWLINE# if ( npos < 3 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( ( text [ 0 ] == '[' ) and ( text [ ( text - 1 ) ] == ']' ) )