def get_text(xmlns, rich_node):
 text_node = rich_node.find(QName(xmlns, 't').text)
 partial_text = (text_node.text or '')
 if (text_node.get(QName(NAMESPACES['xml'], 'space').text) != 'preserve'):
  partial_text = partial_text.strip()
 return str(partial_text)

def get_text ( xmlns , rich_node ) : text_node = rich_node . find ( QName ( xmlns , 't' ) . text ) partial_text = ( text_node . text or '' ) if ( text_node . get ( QName ( NAMESPACES [ 'xml' ] , 'space' ) . text ) != 'preserve' ) : partial_text = partial_text . strip ( ) return str ( partial_text )
read rich text .