> >      if find(v,'\r') >= 0: v=join(split(v,'\r'),'')
> > -    if find(v,'\n') >= 0: v=join(split(v,'\n'),'<br>\n')
> > +    if find(v,'\n') >= 0: v=join(split(v,'\n'),'<br />\n')
> 
> Out of curiosity, what is the reason for using join(split(...)) 
> instead of just
> replace()? Is it really faster or something?

I doubt it - that part of the codebase is quite old, and 
I suspect that replace didn't yet exist when it was 
written.

Brian Lloyd        [EMAIL PROTECTED]
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com 




_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to