[Zope] <dtml-comment> doesn't? Please fix... ;-)

Chris Withers chrisw@nipltd.com
Mon, 04 Sep 2000 11:56:26 +0100


Andrew Kenneth Milton wrote:
> But then you'd have to parse the contents to find out if the comments are
> properly nested...

Well, the parsing should be pretty simple:
1. find <dtml-comment>
2. search for </dtml-comment>
3. if found:
	ignore that block of text
   else if end of text reached:
	bitch like hell ;-)

What's wrong with that?

> I've looked at this briefly today, and the code inside DT_String.py is
> recursively ugly... d;)

You do surprise me ;-)

> It doesn't look difficult to provide what you want, but, I'm not motivated
> enough to fix it either at this stage. d8)

Aww... go on, you know you want to really ;-)

cheers,

Chris