Commit fcb27991 authored by Andreas Jung's avatar Andreas Jung

removed document() and xref() since they are identical with the base

class
parent 6b3c9211
......@@ -21,23 +21,6 @@ class HTMLWithImages(HTMLClass):
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 @@ class HTMLWithImages(HTMLClass):
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) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment