You typically use a newline so you don't see this kind of stuff in diffs, yeah. Some more info:

http://unix.stackexchange.com/questions/18743/whats-the-point-in-adding-a-new-line-to-the-end-of-a-file