#NEWLINE# def findFootnotesPlaceholder( self , root ) : #NEWLINE# #INDENT# ' Return ElementTree Element that contains Footnote placeholder. ' #NEWLINE# def finder( element ) : #NEWLINE# #INDENT# for child in element : #NEWLINE# #INDENT# if child . text : #NEWLINE# #INDENT# if ( child . text . find ( self . getConfig ( 'PLACE_MARKER' ) ) > ( - 1 ) ) : #NEWLINE# #INDENT# return ( child , element , True ) #NEWLINE# #UNINDENT# #UNINDENT# if child . tail : #NEWLINE# #INDENT# if ( child . tail . find ( self . getConfig ( 'PLACE_MARKER' ) ) > ( - 1 ) ) : #NEWLINE# #INDENT# return ( child , element , False ) #NEWLINE# #UNINDENT# #UNINDENT# finder ( child ) #NEWLINE# #UNINDENT# return None #NEWLINE# #UNINDENT# res = finder ( root ) #NEWLINE# return res