diff options
Diffstat (limited to 'giscanner/doctemplates/Python/mallard-Python-function.tmpl')
-rw-r--r-- | giscanner/doctemplates/Python/mallard-Python-function.tmpl | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/giscanner/doctemplates/Python/mallard-Python-function.tmpl b/giscanner/doctemplates/Python/mallard-Python-function.tmpl index 1dbba1ee..65adb1d7 100644 --- a/giscanner/doctemplates/Python/mallard-Python-function.tmpl +++ b/giscanner/doctemplates/Python/mallard-Python-function.tmpl @@ -48,19 +48,15 @@ ${', '.join((arg.argname for arg in node.parameters))}\ </%block> <%block name="details"> % if node.parameters or node.retval: -<table> +<dl> % for arg, ix in zip(node.parameters, range(len(node.parameters))): -<tr> -<td><p>${arg.argname} :</p></td> -<td>${formatter.format(node, arg.doc)}</td> -</tr> +<dt><p>${arg.argname} :</p></dt> +<dd>${formatter.format(node, arg.doc)}</dd> % endfor % if node.retval and node.retval.type.ctype != 'void': -<tr> -<td><p>Returns :</p></td> -<td>${formatter.format(node, node.retval.doc)}</td> -</tr> +<dt><p>Returns :</p></dt> +<dd>${formatter.format(node, node.retval.doc)}</dd> % endif -</table> +</dl> % endif </%block> |