Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 []{"<br>", "\r\n", "\n"});
public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new[] { "<br>", "\r\n", "\n" });

public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty;

Expand Down Expand Up @@ -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);
}
}
Expand Down