[svn r38144] Fixed a problem with the linker which on building api/source docs found matches

in its own source code, moved some elements in the apigen docs out of a header
where they shouldn't have been (making the font too large).

--HG--
branch : trunk
This commit is contained in:
guido
2007-02-08 14:54:38 +01:00
parent 9643b7d6f8
commit 46f8c56c9b
3 changed files with 15 additions and 10 deletions

View File

@@ -22,16 +22,17 @@ class H(html):
class ClassDescription(Description):
pass
class ClassDef(html.h1):
class ClassDef(html.div):
def __init__(self, classname, bases, docstring, sourcelink,
properties, methods):
super(H.ClassDef, self).__init__('class %s(' % classname,)
header = H.h1('class %s(' % (classname,))
for name, href in bases:
link = name
if href is not None:
link = H.a(name, href=href)
self.append(H.BaseDescription(link))
self.append('):')
header.append(H.BaseDescription(link))
header.append('):')
super(H.ClassDef, self).__init__(header)
self.append(H.div(H.Docstring(docstring or
'*no docstring available*'),
sourcelink,