[Zope-dev] cvs checkin?
Brian Lloyd
brian@digicool.com
Mon, 16 Apr 2001 15:56:40 -0400
> > 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 brian@digicool.com
Software Engineer 540.371.6909
Digital Creations http://www.digicool.com