[Zope-Checkins] CVS: Zope2 - __init__.py:1.7
Andreas Jung
andreas@dhcp165.digicool.com
Wed, 2 May 2001 12:57:39 -0400
Update of /cvs-repository/Zope2/lib/python/Products/ZopeTutorial
In directory yetix:/work/sandboxes/Zope2/lib/python/Products/ZopeTutorial
Modified Files:
__init__.py
Log Message:
another small bugfix
--- Updated File __init__.py in package Zope2 --
--- __init__.py 2001/05/02 16:28:38 1.6
+++ __init__.py 2001/05/02 16:56:24 1.7
@@ -154,13 +154,15 @@
We need this to workaround a nasty bug in STXNG.
STXNG creates empty <pre>..</pre> when then text start
- if a level > 1
+ if a level > 1. This fix is lame. The problem should be fixed
+ inside STXNG
"""
l = []
for x in string.split(txt,"\n"):
if len(x)>2 and x[:2]==' ':
l.append(x[2:])
+ else: l.append(x)
return string.join(l,'\n')