From 7d967e5a40d0ae083b6b4dd1a5bdb076832dcdc2 Mon Sep 17 00:00:00 2001 From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:08:50 +0200 Subject: [PATCH] Add '' tag around key words, references and c-blocks. --- Generator/XMLDocsFetcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")) {