Why do I get unwanted space when I paste from the web?

Often, when I paste from the web, I have to delete empty lines above and below what I have copied.