It may be that whitespace is being preserved. Unix programs to use "\n" as the End-Of-Line character, while DOS/Windows programs more frequently use "\r\n" for the End-Of-Line. When you "type" a file in a DOS/windows command window, all the text will appear on the same line. If it looks fine when you open the document in WordPad, that's likely to be your problem.
Update: Fixed grammar.
In reply to Re: LWP on Windows: whitespace removed from HTML
by roboticus
in thread LWP on Windows: whitespace removed from HTML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |