summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/openlmi-doc-class2rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/openlmi-doc-class2rst b/tools/openlmi-doc-class2rst
index 81a0e23..bbcf023 100755
--- a/tools/openlmi-doc-class2rst
+++ b/tools/openlmi-doc-class2rst
@@ -93,7 +93,10 @@ class HtmlExporter(object):
if isinstance(param, (konkretmof.MOF_Property_Decl, konkretmof.MOF_Parameter)) and param.array_index != 0:
ptype = ptype + "[]"
if url:
- ptype = ":ref:`%s <%s>`" % (ptype, self.link(ptype))
+ if ptype.endswith("[]"):
+ ptype = ":ref:`%s <%s>`" % (ptype, self.link(ptype[:-2]))
+ else:
+ ptype = ":ref:`%s <%s>`" % (ptype, self.link(ptype))
else:
ptype = "``" + ptype + "``"
return ptype