Permalink
Browse files

Merge pull request #27 from antoniusriha/Bug#713340

Fix url title malformation in docbrowser. Fixes #713340
  • Loading branch information...
migueldeicaza committed May 24, 2012
2 parents a9d0028 + 5f17af1 commit 2a950a66d5fa0d818e430c0f6f718d54d2c20164
Showing with 9 additions and 0 deletions.
  1. +9 −0 docbrowser/browser.cs
View
@@ -733,6 +733,15 @@ public void LoadUrl (string url)
Node node;
+ /*
+ * The webkit library converts the url titles (N:, T:, etc.) to lower case (n:, t:, etc.)
+ * when clicking on a link. Therefore we need to convert them to upper case, since the
+ * monodoc backend only understands upper case titles (except for root:, afaik).
+ */
+ string[] urlParts = url.Split (':');
+ if (urlParts [0].Length == 1)
+ url = urlParts [0].ToUpper () + url.Substring (1);
+
Console.Error.WriteLine ("Trying: {0}", url);
try {
string res = Browser.GetHtml (url, null, help_tree, out node);

0 comments on commit 2a950a6

Please sign in to comment.