[ZDP] Update ZDP
Howard Clinton Shaw III
Thu, 27 May 1999 14:18:57 -0500
On Thu, 27 May 1999, Tom Deprez wrote:
> : Why not create an external method that takes the unparsed DTML or
> structured text and
> : uses regular expressions to replace the '<' and '>' characters with the
> escaped HTML versions -
> : < and >? Then you wouldn't need to use <pre> tags, and it wouldn't
> expand beyond : all reasonable bounds.
> 1) At the moment, I'm too stupid to create an external method... I'm just
> leaning Zope, and I don't know anything about Python. Would you like to make
> it and explain how things work? (This would be great to put in a tutorial
> later :-))
> 2) What about the spaces? convert them to   ?
No! The whole idea is to let the damn thing break in reasonable places, and to thereby
stop forcing people to scroll sideways to read.
> 3) the other problem is this :
> <!--#var blablablabla(49343, blabla) --> could be wrapped to
> <!--#var blablablabla(49
> 343, blabla) -->
> which makes it difficult to read... (is what I think)
A slightly more complicated regexp, extracting all (<!--.*-->) minimized grouping and then processing them
to replace spaces with is not impossible. Regexps would need to be compiled to avoid major speed lags..
> ZDP maillist - ZDP@zope.org
Howard Clinton Shaw III - Grum
St. Thomas High School