Re: [SMARTY] first line empty

From: Date: Tue, 14 Jan 2003 05:21:41 +0000
Subject: Re: [SMARTY] first line empty
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7161@lists.php.net to get a copy of this message
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

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