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.

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-02-13 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.