diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-08-11 11:59:45 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-08-11 11:59:45 +0200 |
commit | e941e01cf95186da71d791e8b3879458b8a6a955 (patch) | |
tree | bc980a7bc80141be24086740894dcf4e08f2422d | |
parent | ee49a56ab6febafe075daeecddf2cc2b36dcf2e2 (diff) | |
download | gobject-introspection-e941e01cf95186da71d791e8b3879458b8a6a955.tar.gz |
g-ir-doctool: Don't render the * in link targets
-rw-r--r-- | giscanner/docbookwriter.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py index 2056c42b..1b823b91 100644 --- a/giscanner/docbookwriter.py +++ b/giscanner/docbookwriter.py @@ -48,8 +48,13 @@ class DocBookFormatter(object): def _render_parameter(self, param): self._writer.push_tag("parameter", []) - self._writer.push_tag("link", [("linkend", "%s" % ( - param.type.ctype))]) + + if param.type.ctype is not None: + link_dest = param.type.ctype.replace("*", "") + else: + link_dest = param.type.ctype + self._writer.push_tag("link", [("linkend", "%s" % link_dest)]) + self._writer.write_tag("type", [], self.get_type_string(param.type)) self._writer.pop_tag() |