[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_Var.py:1.53
Andreas Jung
andreas@digicool.com
Tue, 21 May 2002 10:41:42 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv9301/DocumentTemplate
Modified Files:
DT_Var.py
Log Message:
Collector 396/397: applied patches for better XHTML compatiblity
=== Zope/lib/python/DocumentTemplate/DT_Var.py 1.52 => 1.53 ===
v=str(v)
if v.find('\r') >= 0: v=''.join(v.split('\r'))
- if v.find('\n') >= 0: v='<br>\n'.join(v.split('\n'))
+ if v.find('\n') >= 0: v='<br />\n'.join(v.split('\n'))
return v
def whole_dollars(v, name='(Unknown name)', md={}):