NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Correct the PHP(5) templates
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
This has been an "issue" ever since I started using PHPEd but I decided to officially ask for it.
Would it be possible to remove the last CRLF from the template files for PHP?
Using one of these templates will always result in the output of an empty line, which is not what you want.

I know it's not really an issue and easily fixed, but we all want PHPEd to be as perfect as possible, no? Wink
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 10 Mar 2008
Posts: 33
Reply with quote
Agreed. Another minor annoyance of mine with the default PHP5 template is the first-line of code is indented 2 spaces - not even 4 spaces or a tab! So I always have to remove that indent, and re-tab the line in.

I've edited both of these in my local template but I agree it could be done by default.
View user's profileFind all posts by mailnet_ukSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
Using one of these templates will always result in the output of an empty line, which is not what you want

not at all Smile
if you check php grammar, you'll see that closing tag may contain \n. In other words, line end after ?> will always be swallowed and will never apppear in the output.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Correct the PHP(5) templates
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