[Zope-Checkins] CVS: Zope2 - DocumentClass.py:1.30
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Mon, 2 Jul 2001 15:13:38 -0400
Update of /cvs-repository/Zope2/lib/python/StructuredText
In directory serenade:/home/chrism/BackTalk/lib/python/StructuredText
Modified Files:
DocumentClass.py
Log Message:
Fixed named link dispatch method. Collector 2266.
--- Updated File DocumentClass.py in package Zope2 --
--- DocumentClass.py 2001/07/02 12:16:33 1.29
+++ DocumentClass.py 2001/07/02 19:13:38 1.30
@@ -915,11 +915,9 @@
result = expr(s)
if result:
start,end = result.span(2)
- a,b = result.span(1)
- str = strip(s[a:b]) + s[start:end]
+ str = s[start+1:end-1]
st,en = result.span()
return (StructuredTextNamedLink(str),st,en)
- #return (StructuredTextNamedLink(s[st:en]),st,en)
return None
def doc_underline(self,