[Zope-Checkins] CVS: Zope/lib/python/StructuredText - HTMLWithImages.py:1.9
Andreas Jung
andreas@digicool.com
Wed, 22 May 2002 14:04:14 -0400
Update of /cvs-repository/Zope/lib/python/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv10406
Modified Files:
HTMLWithImages.py
Log Message:
removed document() and xref() since they are identical with the base
class
=== Zope/lib/python/StructuredText/HTMLWithImages.py 1.8 => 1.9 ===
element_types = ets
- def document(self, doc, level, output):
-
- if self.header:
- output('<html>\n')
- children=doc.getChildNodes()
- if (children and
- children[0].getNodeName() == 'StructuredTextSection'):
- output('<head>\n<title>%s</title>\n</head>\n' %
- children[0].getChildNodes()[0].getNodeValue())
- output('<body>\n')
-
- for c in children:
- getattr(self, self.element_types[c.getNodeName()])(c, level, output)
-
- if self.header:
- output('</body>\n')
- output('</html>\n')
def image(self, doc, level, output):
if hasattr(doc, 'key'):
@@ -46,6 +29,3 @@
if doc.getNodeValue() and hasattr(doc, 'key'):
output('<p><b>Figure %s</b> %s</p>\n' % (doc.key, doc.getNodeValue()))
- def xref(self, doc, level, output):
- val = doc.getNodeValue()
- output('<a href="#ref%s">[%s]</a>' % (val, val) )