Comment 1 for bug 1882067

Revision history for this message
ptoche (ptoche) wrote :

If you search for BeautifulSoup remove empty lines, you'll find many users wanting to remove the empty lines. All the solutions I've seen involve extracting text from the trees, stripping the strings of empty lines, and joining the strings together again. This may remove too many empty lines and/or mess things up and also it returns a string and loses the beauty of the soup.