[Mono-docs-list] patch to fix some broken links in MonoDoc

Martin Willemoes Hansen mwh@sysrq.dk
Thu, 06 Nov 2003 00:38:21 +0100


--=-kizRP7Fw99q0ML0zQFuv
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi!

This patch fixes problems with links when they are to parameter types
which has a FullName like this: foobar& and foobar[].

Okay to commit?
-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------               


--=-kizRP7Fw99q0ML0zQFuv
Content-Disposition: attachment; filename=updater.cs.diff
Content-Type: text/x-patch; name=updater.cs.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

? updater.cs.diff
Index: ChangeLog
===================================================================
RCS file: /cvs/public/monodoc/generator/ChangeLog,v
retrieving revision 1.23
diff -u -r1.23 ChangeLog
--- ChangeLog	29 Oct 2003 22:10:41 -0000	1.23
+++ ChangeLog	5 Nov 2003 23:47:48 -0000
@@ -1,3 +1,8 @@
+2003-11-06  Martin Willemoes Hansen  <mwh@sysrq.dk>
+
+	* updater.cs: parameter type fullnames are disabled, 
+	  this fixes broken links.
+
 2003-10-29  Martin Willemoes Hansen  <mwh@sysrq.dk>
 
 	* a.cs: Obsoleted and removed.
Index: updater.cs
===================================================================
RCS file: /cvs/public/monodoc/generator/updater.cs,v
retrieving revision 1.11
diff -u -r1.11 updater.cs
--- updater.cs	22 Oct 2003 21:04:59 -0000	1.11
+++ updater.cs	5 Nov 2003 23:47:48 -0000
@@ -860,7 +860,7 @@
         {
                 Type param_type = parameter.ParameterType;
                 XmlElement see_node = document.CreateElement ("see");
-                see_node.SetAttribute ("cref", "T:" + param_type.FullName);
+                see_node.SetAttribute ("cref", "T:" + param_type.GetElementType().ToString());
 
                 XmlElement param = document.CreateElement ("param");
                 param.SetAttribute ("name", parameter.Name);

--=-kizRP7Fw99q0ML0zQFuv--