Because you need to chomp your lines.
In reply to Re: persistent new line by AR in thread persistent new line by enkibian