Re: [SMARTY-DEV] Errors in CVS
| From: | Konstantin A. Pelepelin | Date: | Tue, 24 Jun 2003 07:35:44 +0000 |
| Subject: | Re: [SMARTY-DEV] Errors in CVS | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1684@lists.php.net to get a copy of this message | ||
On 23 Jun 2003 12:57:30 -0500, Monte Ohrt <monte@ispi.net> wrote:
I don't know about some browser's issues, but \r and \n should output the same, since it is HTML output. And no one of them is needed in this case, look at that lines (30 and 38, modifier.debug_print_var.php). $results .= '<br>\r'.str_repeat(' ', $depth*2) ... gives output <br>\r ... which is ok in Javascript, but \r is garbage in HTML Replace with $results .= '<br>'.str_repeat(' ', $depth*2) ... which gives output <br> ... which is good for both cases. Konstantin A. Pelepelini don't know of any cross-browser implications or why a \r is emitted there. let's wait if anyone on the list knows a reason for \r not being \n and \r being there at all.Does \n work in javascript? I think I've always used \r. I'm no javascript expert though. Monte