This sounds very much like a http proxy that strips whitespace from the pages before delivering them to you. Is there any proxy in your way? | [reply] |
Not that I'm aware of. The laptop is using a cellular air-card, so it's not sitting behind a proxy server on the company network. The laptop does see line breaks if I view source from the browser; it's just when I use Perl to download the content that I experience the lack-of-whitespace issues.
| [reply] |
Just my $0.02... I've seen providers forcing the use of compressing proxies, especially in the cellular networks here in germany. White-space gets stripped, images get resized and so on, all in order to save bandwidth.
This doesn't explain why you see the whitespace in your browser but perhaps it helps.
| [reply] |
I meant HTML::TreeBuilder in the comment above, not HTML::TreeParser. Sorry for any confusion. | [reply] |