NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Blank lines in a php file edited in notepad


Joined: 28 Mar 2008
Posts: 1
Reply with quote
When I edit the php file using notepad all indent is lost using NuSphere Editor. I see there are 3-10 banks lines between each lines of code.

I want to code to be indented removing these blank line. How I can ident it to it original format?
View user's profileFind all posts by sjanaSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Blank lines added between lines of code?
Indenting only applies horizontally (ie tabs vs spaces and the amount of it).
Unless the line ending format is different between PhpED and notepad I cant think of anything that would cause it.
Can you post a screenshot of the file seen in notepad and in phped?
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
blank lines are often inserted by loosy ftp servers that replace \n\r (windows line endings) with \n\n. It has nothing to do with PhpED or it's ftp client.
There are three possible solutions: 1) upgrade FTP server that won't replace \r with \n 2) use binary mode for all FTP file transfers 3) use only linux/unix line endings (\n).

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Blank lines in a php file edited in notepad
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic