[Zope3-checkins] SVN: Zope3/trunk/src/zwiki/browser/wikipage.py Fix
#424: leave absolute URLs untouched in a wikipage and let docutils
Derrick Hudson
dman at dman13.dyndns.org
Fri Jul 15 16:30:00 EDT 2005
Log message for revision 33329:
Fix #424: leave absolute URLs untouched in a wikipage and let docutils
generate the correct hyperlink.
Changed:
U Zope3/trunk/src/zwiki/browser/wikipage.py
-=-
Modified: Zope3/trunk/src/zwiki/browser/wikipage.py
===================================================================
--- Zope3/trunk/src/zwiki/browser/wikipage.py 2005-07-15 14:38:13 UTC (rev 33328)
+++ Zope3/trunk/src/zwiki/browser/wikipage.py 2005-07-15 20:30:00 UTC (rev 33329)
@@ -201,7 +201,8 @@
if re.match('^["=]', m): # "
return m
else:
- return '<a href="../%s">%s</a>' % (m, m)
+ # leave the URL alone; docutils will add the href tag correctly
+ return m
# it might be a structured text footnote ?
elif re.search(r'(?si)<a name="%s"' % (m),text):
More information about the Zope3-Checkins
mailing list