diff options
author | Miguel de Icaza <miguel@gnome.org> | 2010-12-26 06:44:17 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2010-12-26 06:44:17 +0300 |
commit | 32a34b0566fa3eabe4e221823b90db61c9b980bf (patch) | |
tree | eb8e5355f11d61d2bca3d9c3379671a82dda7e8d /DocTools.cs | |
parent | 98e397e8635abba7b53914ab0218c61387aa3c26 (diff) |
[update] Use new MacCore files
Diffstat (limited to 'DocTools.cs')
-rw-r--r-- | DocTools.cs | 15 |
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); |