Re: [SMARTY-DEV] newline after ?> in compiled templates
| From: | Wom.bat | Date: | Fri, 25 Apr 2003 11:35:35 +0000 |
| Subject: | Re: [SMARTY-DEV] newline after ?> in compiled templates | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1267@lists.php.net to get a copy of this message | ||
Update: Smarty seems to do it only in <?php echo ... ?> constructs...
newline after "?>"...
> 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
>
>
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>