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:
authorMiguel de Icaza <miguel@gnome.org>2010-12-26 06:44:17 +0300
committerMiguel de Icaza <miguel@gnome.org>2010-12-26 06:44:17 +0300
commit32a34b0566fa3eabe4e221823b90db61c9b980bf (patch)
treeeb8e5355f11d61d2bca3d9c3379671a82dda7e8d /DocTools.cs
parent98e397e8635abba7b53914ab0218c61387aa3c26 (diff)
[update] Use new MacCore files
Diffstat (limited to 'DocTools.cs')
-rw-r--r--DocTools.cs15
1 files changed, 10 insertions, 5 deletions
diff --git a/DocTools.cs b/DocTools.cs
index f241141..e801e55 100644
--- a/DocTools.cs
+++ b/DocTools.cs
@@ -11,8 +11,14 @@ namespace macdoc
public class DocTools {
public static string GetHtml (string url, HelpSource helpSource)
{
+ Node _;
+ return GetHtml (url, helpSource, out _);
+ }
+
+ public static string GetHtml (string url, HelpSource helpSource, out Node match)
+ {
string htmlContent = null;
- Node match;
+ match = null;
if (helpSource != null)
htmlContent = helpSource.GetText (url, out match);
@@ -22,10 +28,9 @@ namespace macdoc
helpSource = match.tree.HelpSource;
}
}
- if (htmlContent == null){
-
- }
-
+ if (htmlContent == null)
+ return null;
+
var html = new StringWriter ();
html.Write ("<html>\n<head><title>{0}</title>", url);