Re: Incorrect newline counters

messju mohr <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
On Sun, May 30, 2004 at 11:55:36PM -0700, boots wrote:
> --- messju mohr <[email protected]> wrote:
> > On Mon, May 31, 2004 at 03:31:23AM +0400, Dmitry Koteroff wrote:
> > > RA> Basically,  the  smarty templates are geared so the resulting
> > > RA> output  is the same as the template, and is a higher priority
> > > RA> than the compiled template itself.
> > > Aargh!
> > > 
> > > What do I see in _compile_foreach_start(), for example?
> > > 
> > >   $output .= "if (isset(\$this->_foreach[$name]))
> > unset(\$this->_foreach[$name]);\n";
> > >   $foreach_props = "\$this->_foreach[$name]";
> > > 
> > > WHAT IS THIS? Why \n? It breaks line number!
> > 
> > yes, but nobody here does really seem to care, except of you.
> 
> Actually, I'm certain that messju is aware that many of us care very
> much -- but I'm certain too that he is also aware that we care about
> completely different issues surrounding the topic.

I just wanted to say that hardly anybody seems to care about the fact
that line-numbers in source templates don't correspond to line-numbers
in compiled templates. To me this is really a non-issue although I had
to debug compiled templates from time to time due to errors that
slipped through Smarty's compiler.

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.