text = '' for p in ps: if is_title(p): title = p.findAll('h4')[0].text text += '\n\n'.join(['', title.capitalize(), '']) else: text += '\n'.join(['', html_to_poetry(p).decode('utf-8')])
verso #4