[Petal] PATCH: omit omit-tag from templates

Jonathan Vanasco petal-list at 2xlp.com
Tue Aug 1 23:49:03 BST 2006


This is a trivial patch...

I noticed while checking some petal cache documents that if omit- 
tag="string:1" were set - which is the recommended way of always  
omitting a tag from a document -  it was turned into code that always  
returned true

that seemed a bit wasteful.  this patch just does a secondary check  
on omit-tag items , to see if it is set to string:1

if it is, the start/end tags aren't pushed onto the result stack.  if  
its not , they are.

this seems to work fine, and respect nested items

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PETAL.diff
Type: application/octet-stream
Size: 1700 bytes
Desc: not available
Url : https://lists.webarch.co.uk/pipermail/petal/attachments/20060801/24fed1c1/PETAL.obj
-------------- next part --------------





More information about the Petal mailing list