Show
Ignore:
Timestamp:
10/30/07 13:50:39 (3 years ago)
Author:
JensDiemer
Message:

Not all plugin output should surrounded with a <span> tag.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/defaulttags/lucidTag.py

    r1283 r1294  
    3333# FIXME: The re should be more fault-tolerant: 
    3434KWARGS_REGEX = re.compile('''(\w*?)\=['"](.*?)['"]''') 
     35 
     36# Not all plugin output should surrounded with a <span> tag: 
     37CSS_TAG_BLACKLIST = ("page_style",) 
    3538 
    3639 
     
    8588            raise AssertionError(msg) 
    8689 
    87         content = add_css_tag( 
    88             context, content, self.plugin_name, self.method_name 
    89         ) 
     90        if not self.plugin_name in CSS_TAG_BLACKLIST: 
     91            content = add_css_tag( 
     92                context, content, self.plugin_name, self.method_name 
     93            ) 
    9094 
    9195        return content