[Zope-Checkins] CVS: Zope2 - HTMLClass.py:1.6
Amos Latteier
amos@digicool.com
Tue, 20 Mar 2001 18:43:23 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/StructuredText
In directory korak:/tmp/cvs-serv16476
Modified Files:
HTMLClass.py
Log Message:
Added support for x-refs.
--- Updated File HTMLClass.py in package Zope2 --
--- HTMLClass.py 2001/01/24 16:52:27 1.5
+++ HTMLClass.py 2001/03/20 23:43:23 1.6
@@ -267,6 +267,10 @@
def sgml(self,doc,level,output):
for c in doc.getChildNodes():
getattr(self, self.element_types[c.getNodeName()])(c, level, output)
+
+ def xref(self, doc, level, output):
+ val = doc.getNodeValue()
+ output('<a href="#%s">[%s]</a>' % (val, val) )
def table(self,doc,level,output):
"""