Re: [SMARTY] Problem with caracter inserted in first line (RSS)

From: Date: Mon, 19 Jan 2004 14:36:34 +0000
Subject: Re: [SMARTY] Problem with caracter inserted in first line (RSS)
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10856@lists.php.net to get a copy of this message
On Mon, Jan 19, 2004 at 02:19:09PM +0100, Luc Saint-Elie wrote: > At 14:00 19/01/2004, messju mohr wrote: > > >you have a newline too much at the end of any of the files you include > >before you call display(). > > No I checked that (or I am blind..) I even tried with ob_start and clean.. > same result > Something (I fail to find what) adds a new line and a new character before > the first line of my .tpl file and this in in the process of template > rendering because I have ob_x() > > I have uploaded the to files at > http://www.musiquemagazine.com/smarty_test that's strange. it works fine for me. if you add 'echo "start";' right before the call to display() do you get "start <?xml" or " start<?xml" as output? the smarty and php version you use would be interesting. did you change $smarty->php_handling? your example works fine here with 2.6.1. did you also check function.get_list.php and the like for a trailing space? > They are not complete (the config file is missing) but it's easy to > understand how this works > > Luc

« previous php.smarty.general (#10856) next »