diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-14 22:47:10 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-14 23:18:00 -0500 |
commit | 3b64a2e808ae25b437c30bec237ada89dc4bcfb3 (patch) | |
tree | 359dfe6569e3c0058af70f7e8431cf1ae6aa6633 /giscanner/doctemplates/Python/function.tmpl | |
parent | afe9d25896491db94bdbfac109f003d9ec9ff852 (diff) | |
download | gobject-introspection-3b64a2e808ae25b437c30bec237ada89dc4bcfb3.tar.gz |
doctool: Fix use of <dl> tag in templates
This isn't legal Mallard
Diffstat (limited to 'giscanner/doctemplates/Python/function.tmpl')
-rw-r--r-- | giscanner/doctemplates/Python/function.tmpl | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/giscanner/doctemplates/Python/function.tmpl b/giscanner/doctemplates/Python/function.tmpl index 356619c3..d1b57f4e 100644 --- a/giscanner/doctemplates/Python/function.tmpl +++ b/giscanner/doctemplates/Python/function.tmpl @@ -39,15 +39,19 @@ ${', '.join((formatter.format_parameter_name(node, arg) for arg in formatter.get </%block> <%block name="details"> % if formatter.get_parameters(node) or node.retval: -<dl> +<terms> % for ix, arg in enumerate(formatter.get_parameters(node)): -<dt><p>${formatter.format_parameter_name(node, arg)} :</p></dt> -<dd>${formatter.format(node, arg.doc)}</dd> +<item> +<title><code>${formatter.format_parameter_name(node, arg)}</code></title> +${formatter.format(node, arg.doc)} +</item> % endfor % if node.retval and node.retval.type.ctype != 'void': -<dt><p>Returns :</p></dt> -<dd>${formatter.format(node, node.retval.doc)}</dd> +<item> +<title><code>Returns</code></title> +{formatter.format(node, node.retval.doc)} +</item> % endif -</dl> +</terms> % endif </%block> |