Re[2]: Incorrect newline counters

Dmitry Koteroff <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
>> > > 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.
MM> I just wanted to say that hardly anybody seems to care about the fact
MM> that line-numbers in source templates don't correspond to line-numbers
MM> in compiled templates. To me this is really a non-issue although I had
MM> to debug compiled templates from time to time due to errors that
MM> slipped through Smarty's compiler.
I  have  just  finished  CMS  which uses Smarty and automatically
shows  error  and  notice  messages  (with additional stacktrace)
directly  in  the  source template (not in the resulting compiled
code). It is very useful. And if line numbers are out of sync, we
have debugging mess.

In  general,  it  seems  that  line number synchronization is the
hardest  task  in the world (see, for example, JSP, Cocoon, Mason
and  other  template-like  engines).  However  this  task is very
simple  in  practice  and  needs  no mere than couple of hours of
programming.

-- 
Best regards,
  Dmitry Koteroff.

-- 
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.