newline after ?> in compiled templates

From: Date: Fri, 25 Apr 2003 11:33:37 +0000
Subject: newline after ?> in compiled templates
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1266@lists.php.net to get a copy of this message
if I do a {$smarty.constant.FOO}bar the resulting output will be <?php echo @constant('FOO'); ?> bar i.e. a newline is added after "?>"... this may lead to problems when using anything else than html (for example, plain text email templates), or if I want to replace this construct via an outputfilter (I do so for dynamically inserting a <meta http-equiv="refresh"...>)... I'd have to set the preg (in this case, I don't need one) to /s to include newlines As far as I can see that, Smarty always places a newline after a "?>"... maybe this should be fixed!? ;) (Smarty version is the current CVS) Regards, David

« previous php.smarty.dev (#1266) next »