Re: [SMARTY] Newline being inserted after plugin
Josh Trutwin <[email protected]> Wed, 10 Oct 2007 09:24:51 -0500
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 10 Oct 2007 09:03:35 -0500 Monte Ohrt <[email protected]> wrote: > A new line is created after the ?> because PHP eats the newline. > > So, this (foo outputs 'FOO'): > > TEST"{foo}"TEST > > is compiled to: > > TEST"<?php echo foo(array(), $this);?> > "TEST > > (see the newline inserted) > > And the final output: Final output in the cache .php file or in the browser? If this is how it should appear in the cached php I'm not seeing this - the .php cache has what you have above with a newline after ?>. > TEST"FOO"TEST > > (no newline) Thanks - but what do I do to not get a php fatal error when the template is rendered? Josh -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php