def convert_to_text(self):
        txts = []
        for node in list(self.get_top_node()):
            try:
                txt = self.parser.getText(node)
            except __HOLE__:  # lxml error
                log.warning('Error parsing lxml node', exc_info=True)
                txt = None

            if txt:
                txt = HTMLParser().unescape(txt)
                txt_lis = innerTrim(txt).split(r'\n')
                txt_lis = [n.strip(' ') for n in txt_lis]
                txts.extend(txt_lis)
        return '\n\n'.join(txts)
dataset/ETHPy150Open codelucas/newspaper/newspaper/outputformatters.py/OutputFormatter.convert_to_text