Im assuming I dont have a right to do cvs checkins... so how do I get this tiny stupid little change made, just email Brian ;P? Make newline_to_br xml compliant <br /> instead of <br>: --- d:\Zope-2.3.0-src\lib\python\DocumentTemplate\old_DT_Var.py Mon Apr 16 08:23 :10 2001 +++ d:\Zope-2.3.0-src\lib\python\DocumentTemplate\DT_Var.py Mon Apr 16 08:22 :24 2001 @@ -361,7 +361,7 @@ def newline_to_br(v, name='(Unknown name)', md={}): v=str(v) 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') return v def whole_dollars(v, name='(Unknown name)', md={}): Cheers. -- Andy McKay.
Andy McKay wrote:
Im assuming I dont have a right to do cvs checkins... so how do I get this tiny stupid little change made, just email Brian ;P?
Collector? Works for me 8^) http://classic.zope.org:8080/Collector -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
I suppose, its just not really a bug and I've always thought of the collector as bug db. Cheers. -- Andy McKay. ----- Original Message ----- From: "Casey Duncan" <cduncan@kaivo.com> To: "Andy McKay" <andym@activestate.com> Cc: <zope-dev@zope.org> Sent: Monday, April 16, 2001 8:36 AM Subject: Re: [Zope-dev] cvs checkin?
Andy McKay wrote:
Im assuming I dont have a right to do cvs checkins... so how do I get
this
tiny stupid little change made, just email Brian ;P?
Collector? Works for me 8^)
http://classic.zope.org:8080/Collector
-- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )
On Mon, 16 Apr 2001, Andy McKay wrote:
I suppose, its just not really a bug and I've always thought of the collector as bug db.
One of the options when you submit is "feature request w/patch". So the "bug collector" probably needs a name change... On the other hand, we all know about the slippery distinction between a "bug" and a "feature" <grin>. --RDM
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? --jfarr
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
participants (5)
-
Andy McKay -
Brian Lloyd -
Casey Duncan -
Jonothan Farr -
R. David Murray