Re: newlines in files

From: Date: Thu, 25 Oct 2001 17:02:39 +0000
Subject: Re: newlines in files
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1721@lists.php.net to get a copy of this message
Hi! On Thu, 25 Oct 2001, Monte Ohrt wrote: > newlines at the end of the Smarty files. I thought this was a bit odd at > first, but yes they are in there. But, this seems to be the case with > any file. It is (and should be with all text editors) standard to end each line, even the last line of a file, with the respective new line indicator. For PHP, this is not a problem, as the newline directly following the closing tag is "swallowed". You can therefore use include files to output binary data, no problem. If someone needs an "open" last line, he/she should use a hex editor. And if someone, for some reason, needs a smarty w/o the last \n, he can strip it from there himself. Don't conform! IkKampfCaspar 75

« previous php.smarty.general (#1721) next »