Might have something to do with whether you have page-wrap turned on in Notepad. I’d recommend upgrading your text editor anyway, Notepad isn’t the most efficient tool for writing code – at the very least I think you’ll enjoy syntax highlighting and is a must for more complex web pages. I personally use TextMate – but I gather you’re on Windows, so you could look at e-texteditor, or as others have suggested Notepad++ etc. There on many editors out there, some free, some a small cost and I’m sure you’ll find something that you’ll wonder how you ever lived without ;)
Notepad is a basic text editor, so does not interpret the formatting used in other applications – so it just writes in the machine code. You may be able to paste the code into word pad or word and see if there’s an option to remove formatting?
I still don’t understand why you’re using notepad for web development, it’s like trying to dig a tunnel with chopsticks!
I have just downloaded notepadd++. I think i am going to like it. It supports ftp wich is really nice. I think some people use notepad because they want to say that they designed the page without any help at all. With nothing more than the most basic tool in the universe.