When you got a lot of blank lines in Dreamweaver file after download with FTP (the reason is that you forgot to set the file type to binary, ASCII file will have problem)
1. Open the file
2. Click CTRL + F
3. Select "Current document" in "Find in" (You can also select the folder if you have multiple files)
4. Search in "Source code"
5. Tick "Use regular expression"
6. Type "[\r\n]{2,}" (without quotes) in "Find"
7. Type "\n" (without quotes) in "Replace with" field
8. Press "Replace All"
If the step 7 has problem, you need to do like this:
in "Replace with" field, you can press "Shift" + "Enter" to create a blank line.