Re[2]: [SMARTY-DEV] Incorrect newline counters

From: Date: Tue, 01 Jun 2004 20:49:18 +0000
Subject: Re[2]: [SMARTY-DEV] Incorrect newline counters
References: 1 2 3 4 5 6  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2362@lists.php.net to get a copy of this message
MO> I'd say in theory, any function on a line **by itself** that does not MO> produce output directly should not create a line in the output. So, #2 MO> would probably be the expected output. Similar example: MO> {if $foo} MO> bar MO> {/if} MO> should output: MO> bar\n MO> and not: MO> \nbar\n\n Stop. It is identical to PHP's behaviour: <?if (...) {?> bar <?}?> Result is "bar\n". But you had said before that newlines MUST not be ignored after {...} constructions! Can you explain this? Maybe newlines must be always deleted after block-tags, but not after function-tag? Can you explain the FULL behavour of different tags? -- Best regards, Dmitry Koteroff.

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