If you use Notepad++ to paste the revised code into the file, you will not get any extra spaces unless you put them in yourself.

Are you still getting a "headers already sent" kind of error? Does it involve a file that you have ever edited?