Skip to content

Commit 137a5e1

Browse files
committed
fix: newline after return with description
1 parent 7a52bed commit 137a5e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ string Link(string uid, bool linkFromGroupedType, bool nameOnly = false, bool li
220220
summary = summary.Replace("\n", config.ForcedNewline);
221221

222222
summary = HtmlEscape(summary);
223-
223+
224224
if (config.UnescapeCodeBlocks)
225225
summary = markdownCodeBlockRegex.Replace(summary!,
226226
match => $"```{match.Groups[1].Value.Trim()}\n{WebUtility.HtmlDecode(match.Groups[2].Value.Trim())}\n```");
227-
227+
228228
return summary;
229229
}
230230

@@ -355,7 +355,7 @@ await Parallel.ForEachAsync(items, async (item, _) =>
355355
if (string.IsNullOrWhiteSpace(method.Syntax.Return?.Description))
356356
str.AppendLine();
357357
else
358-
str.Append(": " + GetSummary(method.Syntax.Return.Description, isGroupedType));
358+
str.AppendLine(": " + GetSummary(method.Syntax.Return.Description, isGroupedType));
359359
}
360360

361361
if (method.Syntax.Parameters is { Length: > 0 })

0 commit comments

Comments
 (0)