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()}");