diff --git a/Generator/XMLDocsFetcher.cs b/Generator/XMLDocsFetcher.cs index 6b3dc09..6af6beb 100644 --- a/Generator/XMLDocsFetcher.cs +++ b/Generator/XMLDocsFetcher.cs @@ -30,7 +30,7 @@ public static async Task Get(string package, string version) var document = await context.OpenAsync(req => req.Content(content.Replace("/>", ">"))); foreach (var seeReference in document.QuerySelectorAll("see")) { - seeReference.OuterHtml = seeReference.GetAttribute("cref")?.Split(".").Last() ?? seeReference.GetAttribute("langword")?.Split(".").Last() ?? string.Empty; + seeReference.OuterHtml = $"{seeReference.GetAttribute("cref")?.Split(".").Last() ?? seeReference.GetAttribute("langword")?.Split(".").Last() ?? string.Empty}"; } foreach (var member in document.GetElementsByTagName("doc")[0].Children[1].Children) @@ -49,7 +49,7 @@ public static async Task Get(string package, string version) } foreach (var cWrapper in child.Children.Where(c => c.TagName == "C")) { - cWrapper.OuterHtml = cWrapper.InnerHtml.Trim(); + cWrapper.OuterHtml = $"{cWrapper.InnerHtml.Trim()}"; } foreach (var exampleWrapper in child.Children.Where(c => c.TagName == "EXAMPLE")) {