[PATCH] Fix to enable lookup of malformamed generic types.

Valentin Sawadski <[email protected]> Fri, 14 Dec 2007 18:33:24 +0100
Newsgroups gmane.comp.gnome.mono.documentation
Message-ID <[email protected]>
Hello,

this short patch makes all properly formatted and malformed links in the
docbrowser work. Please review it and apply if no one objects.

Kind Regards,
Valentin Sawadski

_______________________________________________
Mono-docs-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-docs-list
monodoc.diff (text/x-patch, 987 B)
Index: provider.cs
===================================================================
--- provider.cs	(revision 91289)
+++ provider.cs	(working copy)
@@ -962,6 +962,11 @@
 	
 	public static bool GetNamespaceAndType (string url, out string ns, out string type)
 	{
+		// This is a little ugly hack but it at least it helps to retrieve the
+		// wanted type.
+		string interalUrl = url.Replace("&lt;", "<");
+		interalUrl = url.Replace("&gt;", ">");
+
 		int nsidx = -1;
 		int numLt = 0;
 		for (int i = 0; i < url.Length; ++i) {
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 91289)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2007-12-14  Valentin Sawadski  <[email protected]>
+	* provider.cs: Convert "&lt;" and "&gt;" to "<" and ">" to ensure that
+	  generic types are looked up properly.
+
 2007-12-12  Jonathan Pryor  <[email protected]>
 
 	* provider.cs: Permit "relaxed" type/member URL lookup.  Many of the