diff --git a/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs b/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs index d5107d11843..1e887f8bbf0 100644 --- a/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs +++ b/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs @@ -172,14 +172,27 @@ private static string CreateHelp(OpenNodeAnnotationEventArgs e) { sb.AppendLine("
"); sb.AppendLine($"{"Message"}"); - sb.AppendLine($"

{GetNthRowFromStringSplit(e.NodeInfos.ElementAt(i).Message, 0)}

"); - var help = e.NodeInfos.ElementAt(i).Message.Split(new string[] {". "}, StringSplitOptions.None); - var html = help[1].Split(new string[] {"href="}, StringSplitOptions.None)[1]; - var helpHtml = - DocumentationBrowserUtils.GetContentFromEmbeddedResource($"{RESOURCE_PREFIX + html}"); + var message = e.NodeInfos.ElementAt(i).Message; - sb.AppendLine(helpHtml); + if (message.Contains("href=")) + { + sb.AppendLine($"

{GetNthRowFromStringSplit(e.NodeInfos.ElementAt(i).Message, 0)}

"); + + var help = e.NodeInfos.ElementAt(i).Message.Split(new string[] {". "}, StringSplitOptions.None); + var html = help[1].Split(new string[] {"href="}, StringSplitOptions.None)[1]; + var helpHtml = + DocumentationBrowserUtils.GetContentFromEmbeddedResource($"{RESOURCE_PREFIX + html}"); + + sb.AppendLine(helpHtml); + } + else + { + foreach(var line in message.Split(new string[] { "\r\n" }, StringSplitOptions.None)) + { + sb.AppendLine($"

{line}

"); + } + } } catch (Exception ex) {