newline after object call.
Arpad Borsos <[email protected]> Thu, 05 May 2005 15:04:11 +0200
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi.
Is there any reason why there is a newline after object calls?
I have something similar in my code:
{admin->checkright right="templates"}
<?xml version="1.0" encoding="ISO-8859-1"?>
the problem is that when the code is parsed a newline is inserted after
the object call which results in a xhtml error.
I can work around the problem by using assign. But that makes no sense
since my admin::checkright function does not return anything.
Looks like this behavior is hardcoded in the compilers
_compile_registered_object_tag function. But i cant see any reason for this.
--
________________________________
MfG Arpad Borsos aka "Swatinem"
IRC: irc://de.quakenet.org/swatinemz
________________________________
Reclaim Your Inbox! - Mozilla Thunderbird
http://www.mozilla.org/products/thunderbird/
Take Back the Web! - Mozilla Firefox
http://www.mozilla.org/products/firefox/
________________________________
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php