Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-02-13 21:56:43 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-02-15 21:29:49 +0400
commit502d9a33d89f5ee8fc4804216245954d1696632c (patch)
tree50f5a4d9a41f402075cbc2ad7d1076d4f4f08e9f /DocTools.cs
parent9c969bd9fe5005df4cebf866da42bcf96d7539ac (diff)
[macdoc] Fix links not showing in WebView because of casing (fun fun)
Diffstat (limited to 'DocTools.cs')
-rw-r--r--DocTools.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/DocTools.cs b/DocTools.cs
index e801e55..db8bcd5 100644
--- a/DocTools.cs
+++ b/DocTools.cs
@@ -23,6 +23,8 @@ namespace macdoc
if (helpSource != null)
htmlContent = helpSource.GetText (url, out match);
if (htmlContent == null){
+ // the displayed url have a lower case type code (e.g. t: instead of T:) which confuse monodoc
+ url = char.ToUpperInvariant (url[0]) + url.Substring (1);
htmlContent = AppDelegate.Root.RenderUrl (url, out match);
if (htmlContent != null && match != null && match.tree != null){
helpSource = match.tree.HelpSource;