[Zope-dev] chameleon.core removes the meta http-equiv="content-type" tag

Fabio Tranchitella kobold at kobold.it
Fri Aug 14 08:53:55 EDT 2009


Hello,

I hope this is the right mailing list for such a question. Why does
chameleon.core removes the meta tag http-equiv="content-type" from the
output?

In template.py, line 286:

    # Look for an encoding specification in the meta tag
    match = utils.re_meta.search(body)
    if match is not None:
        content_type, encoding = match.groups()
        # TODO: Shouldn't <meta>/<?xml?> stripping
        # be in PageTemplate.__call__()?
        body = utils.re_meta.sub("", body)
    else:
        content_type = None
        encoding = config.DEFAULT_ENCODING

I couldn't find the explanation anywhere in the source code nor in the
documentation.

Thanks,
Fabio


More information about the Zope-Dev mailing list