From 6929764dff7f97cd2a65aba5736a1d4a23aead21 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Tue, 17 Dec 2024 17:51:46 -0500 Subject: [PATCH] Trim title --- tools/ConfigurationFilesGenerator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ConfigurationFilesGenerator/Program.cs b/tools/ConfigurationFilesGenerator/Program.cs index c922290..02d5174 100644 --- a/tools/ConfigurationFilesGenerator/Program.cs +++ b/tools/ConfigurationFilesGenerator/Program.cs @@ -73,7 +73,7 @@ await Parallel.ForEachAsync(packages, async (item, cancellationToken) => var currentRuleConfiguration = currentConfiguration.Rules.FirstOrDefault(r => r.Id == rule.Id); var severity = currentRuleConfiguration != null ? currentRuleConfiguration.Severity : rule.DefaultEffectiveSeverity; - sb.AppendLine($"# {rule.Id}: {rule.Title?.TrimEnd()}"); + sb.AppendLine($"# {rule.Id}: {rule.Title?.TrimEnd()}".TrimEnd()); if (!string.IsNullOrEmpty(rule.Url)) { sb.AppendLine($"# Help link: {rule.Url?.TrimEnd()}");