Allow nested argument specifications
This commit is contained in:
parent
11045f84bd
commit
7691fb14c1
12
zpy2html.py
12
zpy2html.py
|
@ -87,6 +87,16 @@ template = """
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dd > .children
|
||||||
|
{
|
||||||
|
font-size: 95%%;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd > .children > dl > dd
|
||||||
|
{
|
||||||
|
margin-left: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
.exclamation
|
.exclamation
|
||||||
{
|
{
|
||||||
|
@ -254,7 +264,7 @@ class Argument(TreeLevel):
|
||||||
self.data = data
|
self.data = data
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
return '<dl><dt>%s</dt><dd>%s</dd></dl>' % (self.argname, self.process_inline_markup(self.data))
|
return '<dl><dt>%s</dt><dd>%s%s</dd></dl>' % (self.argname, self.process_inline_markup(self.data), self.render_children())
|
||||||
|
|
||||||
class Header(TreeLevel):
|
class Header(TreeLevel):
|
||||||
def __init__(self, indentation, data, depth):
|
def __init__(self, indentation, data, depth):
|
||||||
|
|
Loading…
Reference in a new issue