Re: [SMARTY] first line empty

From: Date: Tue, 14 Jan 2003 12:32:13 +0000
Subject: Re: [SMARTY] first line empty
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7168@lists.php.net to get a copy of this message
Pupeno, I agree with Scott, you probably have a trailing new line after the ?> in one of your include files. Jason ----- Original Message ----- From: "Scott Barron" <sb125499@ohiou.edu> To: <smarty-general@lists.php.net> Sent: Monday, January 13, 2003 11:21 PM Subject: Re: [SMARTY] first line empty > On Mon, Jan 13, 2003 at 11:47:24PM -0500, Pupeno wrote: > > On Monday 13 January 2003 22:13, Pupeno wrote: > > > I don't know why, in my pages, the first line, is empty, which turns my > > > pages in invalid XML. I'm using Smarty but I don't know where to start > > > traking down this problem. Any advice ? > > > Thanks > > I removed almost everything, prefilters, almost all the contents, the strip, > > etc, I reduced the compiled file by removing the initial comment to something > > like this: > > <?php echo '<?xml version="1.0" > > encoding="UTF-8"?>'; ?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > > > > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" > > xml:lang="<?php echo > > $this->_tpl_vars['lang']; ?> > > "> > > <head> > > and I'm still getting an empty line at the beggining. should I consider this a > > Smarty bug ? or I'm doing something wrong ? > > Thanks. > > My first guess would be that the PHP scripts you wrote (i.e. the ones > that utilize Smarty) may have blank lines before or after the <?php ... > ?> section. Have you checked these? > > -Scott > -- > eventus stultorum magister > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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