[gobject-introspection/gir-docbook] g-ir-doctool: Don't render the * in link targets



commit e941e01cf95186da71d791e8b3879458b8a6a955
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date:   Thu Aug 11 11:59:45 2011 +0200

    g-ir-doctool: Don't render the * in link targets

 giscanner/docbookwriter.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py
index 2056c42..1b823b9 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()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]