Trailing line at end of files
Moderator: General Moderators
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
-
The phpeclicpse (plugin for eclipse) framework unfortunately has the trailing line in the default php template. I always remove all empty lines in top or at the bottom of all files (not only in PHP files). I sometimes had problems with "headers already sent" when there were empty lines after the closing PHP tag.
djot
-
The phpeclicpse (plugin for eclipse) framework unfortunately has the trailing line in the default php template. I always remove all empty lines in top or at the bottom of all files (not only in PHP files). I sometimes had problems with "headers already sent" when there were empty lines after the closing PHP tag.
djot
-
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I don't use the ?> tag, but I always ensure I have a traiing newline after the closing } brace of my class.
It just looks wrong to me when a file ends without a blank line. Some UNIX tools will warn you about missing newlines too. It's probably something to do with each line expected to have EOL after it.
Emacs will warn you if you try to save a file without a trailing line from what I remember. nano/pico add a newline automatically.
It just looks wrong to me when a file ends without a blank line. Some UNIX tools will warn you about missing newlines too. It's probably something to do with each line expected to have EOL after it.
Emacs will warn you if you try to save a file without a trailing line from what I remember. nano/pico add a newline automatically.