diff options
Diffstat (limited to 'giscanner/mallard-Python-class.tmpl')
-rw-r--r-- | giscanner/mallard-Python-class.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/mallard-Python-class.tmpl b/giscanner/mallard-Python-class.tmpl index d45b0ab6..feae1d11 100644 --- a/giscanner/mallard-Python-class.tmpl +++ b/giscanner/mallard-Python-class.tmpl @@ -22,11 +22,11 @@ ${formatter.format(node.doc)} </tree> </synopsis> <p>Constructor</p> - <synopsis><code mime="text/x-python"> + <synopsis><code> ${formatter.to_underscores(node.name).lower()} = ${node.name}(\ % for property_, ix in zip(node.properties, range(len(node.properties))): % if property_.construct or property_.construct_only or property_.writable: -${property_.name.replace('-', '_')}=value\ +<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\ % if ix != len(node.properties) - 1: , \ % endif |