Jump to content

Dreamweaver adding spaces between each line


Recommended Posts

As the title says, I keep getting PHP scripts opening with an extra line between each line of code, it makes the script twice the length. However if I open it in Notepad, it looks fine, how it should be.

 

What's causing this and how do I fix it?

 

Thanks,

Nick.

Link to comment
Share on other sites

If you find out what's causing it, let me know, 'cos I want my code to be automatically shown double spaced  ;D

 

Actually, I'm after an editor that's shows double line height but only has single lines.

 

If people get what I mean.  At the moment I purposely add an extra line between each statement, I'm using

a PHP Optimizer on the server anyway, and I just find I can read code better with more space between each

line.

Link to comment
Share on other sites

Found how to repair the files but not fix it, it's to do with the format OS used (Windows/Linux/Apple).

 

In your code:

 

Find: (press Ctrl + m twice)

Replace With: (press Ctrl + m once)

 

And it will remove all the excessive lines! :D

Link to comment
Share on other sites

  • 5 months later...

I found another solution.

 

If you download the files in 'Binary' mode with your FTP, it removes the extra lines.

 

It seems when the file is edited in different applications and uploaded / downloaded. It adds these extra spaces. Binary mode fixed it for me.

Link to comment
Share on other sites

  • 1 year later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.