~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-tools/docbrowser/browser.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
733
733
                
734
734
                Node node;
735
735
                
 
736
                /*
 
737
                 * The webkit library converts the url titles (N:, T:, etc.) to lower case (n:, t:, etc.)
 
738
                 * when clicking on a link. Therefore we need to convert them to upper case, since the
 
739
                 * monodoc backend only understands upper case titles (except for root:, afaik).
 
740
                 */
 
741
                string[] urlParts = url.Split (':');
 
742
                if (urlParts [0].Length == 1)
 
743
                        url = urlParts [0].ToUpper () + url.Substring (1);
 
744
                        
736
745
                Console.Error.WriteLine ("Trying: {0}", url);
737
746
                try {
738
747
                        string res = Browser.GetHtml (url, null, help_tree, out node);
937
946
        void delete_event_cb (object o, DeleteEventArgs args)
938
947
        {
939
948
                Application.Quit ();
 
949
                args.RetVal = true;
940
950
        }
941
951
        void on_print_activate (object sender, EventArgs e) 
942
952
        {