[Zope-Checkins] CVS: Zope2 - ClassicDocumentClass.py:1.10
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Tue, 1 May 2001 13:04:38 -0400
Update of /cvs-repository/Zope2/lib/python/StructuredText
In directory serenade.digicool.com:/tmp/cvs-serv14850
Modified Files:
ClassicDocumentClass.py
Log Message:
fix for doc_underline: a string containing two underscores
has been recognized as string to be underlined.
--- Updated File ClassicDocumentClass.py in package Zope2 --
--- ClassicDocumentClass.py 2001/04/28 06:09:46 1.9
+++ ClassicDocumentClass.py 2001/05/01 17:04:38 1.10
@@ -632,7 +632,7 @@
def doc_underline(self,
s,
- expr=re.compile("\_([%s0-9\s\.,\?\/]+)\_" % letters).search):
+ expr=re.compile("\s*\_([%s0-9\s\.,\?\/]+)\_" % letters).search):
result = expr(s)
if result: