#NEWLINE# def filter_footer( text ) : #NEWLINE# #INDENT# possible_footers = [ line for line in text . split ( '\n' ) if line . strip ( ) . startswith ( '--' ) ] #NEWLINE# if ( len ( possible_footers ) != 1 ) : #NEWLINE# #INDENT# return text #NEWLINE# #UNINDENT# return text . partition ( '--' ) [ 0 ] . strip ( )