Comment 1 for bug 1589227

Revision history for this message
Leonard Richardson (leonardr) wrote : Re: Some newlines are missing in parsed document

Beautiful Soup is designed to collapse all whitespace except where whitespace is significant (such as within a <pre> or <textarea> tag). You've identified some places where whitespace doesn't get collapsed, and my initial reaction would be to make sure it does get collapsed.

In addition, you're asking for a mode where whitespace _doesn't_ get collapsed, where every tag is treated the way we currently treat <pre> and <textarea>. I don't get a lot of requests for this but it seems reasonable.