From 6018c21c7aae989a99789c290ab31280178fe30a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Thu, 30 Jun 2022 00:44:35 +0300 Subject: [PATCH] Escaped angle brackets --- .../resources/psruntime/BuildTime/Models/PsProxyOutputs.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs b/powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs index 1b33439b225..8eee23ee579 100644 --- a/powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs +++ b/powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs @@ -310,7 +310,7 @@ public ParameterDescriptionOutput(string description) public override string ToString() => !String.IsNullOrEmpty(Description) ? Description.ToDescriptionFormat(false).NormalizeNewLines() - .Split(new [] { Environment.NewLine }, StringSplitOptions.None) + .Split(new[] { Environment.NewLine }, StringSplitOptions.None) .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") : String.Empty; } @@ -452,7 +452,7 @@ public static string ToPsType(this Type type) // https://stackoverflow.com/a/5284606/294804 private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; - public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new []{"
", "\r\n", "\n"}); + public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new[] { "
", "\r\n", "\n" }); public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; @@ -526,7 +526,7 @@ string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool return ni.IsComplexInterface ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); - }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); return String.Join(Environment.NewLine, nested); } }