Cyrille Bonnet wrote:
Hi all,

I got the filter to work. I just added 3 lines of code in "ZPublisher.HTTPResponse.HTTPResponse" (thanks for your suggestion, Dieter):

        doctype_str_search = re.compile(r'<!DOCTYPE.*>')
body = doctype_str_search.sub('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "";>', body)

        body = body.replace('/>', '>')

You can't be serious, right?

The above do NOT suddenly make it HTML 4.01, I'm 90% sure ;-)

Really, you should be customising the templates to serve HTML in the format you need rather than persuing this insanity...


Simplistix - Content Management, Zope & Python Consulting

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to