Tags:
create new tag
, view all tags
%TMPL:DEF defined templates do not instantiate as written. This is because the template reading code strips leading and trailing whitespace. This is a major PITA (and the major source of bugs in the CommentPlugin).

For example,

%TMPL:DEF{"mytable"}%
| My | Table |
%TMPL:END%

This is %TMPL:P{"mytable"}% my table
instantantiates as

This is | My | Table | my table

and not the more intuitive

This is

My Table
my table

I understand why it was coded that way, I think (because HTML doesn't care about spaces) but the implementation is counter-intuitive and a source of confusion.

Proposal: stop %TMPL:DEF from stripping leading and trailing whitespace.

-- CrawfordCurrie - 14 Oct 2004

Moved to Bugs:Item1640. Please comment there.

 
Topic revision: r3 - 2006-02-13 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.