#NEWLINE# def elements2textnl( nodes , with_tail = True , replacement = '\n' ) : #NEWLINE# #INDENT# return [ extract_text ( format_htmlblock_tags ( e , replacement = replacement ) , with_tail = with_tail , keep_nl = True ) for e in nodes ]